- java.lang.Object
-
- com.pervasive.datarush.tokens.TokenRegisters
-
public class TokenRegisters extends Object
A factory for creatingDataRegister
objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataRegister
getRegister(TokenType type)
Creates aDataRegister
appropriate for the given type.static ScalarRegister[]
getRegisters(ScalarTokenType[] types)
Creates an array ofScalarRegister
's for the given types.
-
-
-
Method Detail
-
getRegister
public static DataRegister getRegister(TokenType type)
Creates aDataRegister
appropriate for the given type.- Parameters:
type
- the token type for which to create a register- Returns:
- a new token value register
-
getRegisters
public static ScalarRegister[] getRegisters(ScalarTokenType[] types)
Creates an array ofScalarRegister
's for the given types.- Parameters:
types
- The types of the registers- Returns:
- an array of
ScalarRegister
's for the given types.
-
-