Class ModelicaTokenKinds
- java.lang.Object
-
- net.sourceforge.pmd.lang.modelica.ast.ModelicaTokenKinds
-
@InternalApi public final class ModelicaTokenKinds extends Object
Token kinds (JavaccToken.kind
) for this language.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALGORITHM
static int
AND
static int
ANNOTATION
static int
ASSIGN
static int
ASTERISK
static int
BLOCK
static int
BOM
static int
BREAK
static int
CLASS
static int
COLON
static int
COMMA
static int
CONNECT
static int
CONNECTOR
static int
CONSTANT
static int
CONSTRAINEDBY
static int
DER
static int
DIGIT
static int
DISCRETE
static int
DOT
static int
DOT_ASTERISK
static int
DOT_HAT
static int
DOT_MINUS
static int
DOT_PLUS
static int
DOT_SLASH
static int
EACH
static int
ELSE
static int
ELSEIF
static int
ELSEWHEN
static int
ENCAPSULATED
static int
END
static int
ENUMERATION
static int
EOF
static int
EQ
static int
EQ_SIGN
static int
EQUATION
static int
EXPANDABLE
static int
EXTENDS
static int
EXTERNAL
static int
FALSE
static int
FINAL
static int
FLOW
static int
FOR
static int
FUNCTION
static int
GE
static int
GT
static int
HAT
static int
IDENT
static int
IF
static int
IMPORT
static int
IMPURE
static int
IN
static int
INITIAL
static int
INNER
static int
INPUT
static int
LCURL
static int
LE
static int
LINE_COMMENT
static int
LOOP
static int
LPAREN
static int
LSQUARE
static int
LT
static int
MINUS
static int
MODEL
static int
MULTI_LINE_COMMENT
static int
NEQ
static int
NONDIGIT
static int
NOT
static int
OPERATOR
static int
OR
static int
OUTER
static int
OUTPUT
static int
PACKAGE
static int
PARAMETER
static int
PARTIAL
static int
PLUS
static int
PROTECTED
static int
PUBLIC
static int
PURE
static int
Q_CHAR
static int
Q_IDENT
static int
RCURL
static int
RECORD
static int
REDECLARE
static int
REPLACEABLE
static int
RETURN
static int
RPAREN
static int
RSQUARE
static int
S_CHAR
static int
S_ESCAPE
static int
SC
static int
SLASH
static int
STREAM
static int
STRING
static int
THEN
static List<String>
TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind.static int
TRUE
static int
TYPE
static int
UNSIGNED_INTEGER
static int
UNSIGNED_NUMBER
static int
WHEN
static int
WHILE
static int
WITHIN
static int
WS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @Nullable String
describe(int kind)
Returns a string describing the given token kind.static TokenManager<JavaccToken>
newTokenManager(CharStream cs)
Returns a new token manager for this language.
-
-
-
Field Detail
-
EOF
public static final int EOF
- See Also:
- Constant Field Values
-
BOM
public static final int BOM
- See Also:
- Constant Field Values
-
LPAREN
public static final int LPAREN
- See Also:
- Constant Field Values
-
RPAREN
public static final int RPAREN
- See Also:
- Constant Field Values
-
LCURL
public static final int LCURL
- See Also:
- Constant Field Values
-
RCURL
public static final int RCURL
- See Also:
- Constant Field Values
-
LSQUARE
public static final int LSQUARE
- See Also:
- Constant Field Values
-
RSQUARE
public static final int RSQUARE
- See Also:
- Constant Field Values
-
SC
public static final int SC
- See Also:
- Constant Field Values
-
EQ_SIGN
public static final int EQ_SIGN
- See Also:
- Constant Field Values
-
COMMA
public static final int COMMA
- See Also:
- Constant Field Values
-
DOT
public static final int DOT
- See Also:
- Constant Field Values
-
COLON
public static final int COLON
- See Also:
- Constant Field Values
-
IMPORT
public static final int IMPORT
- See Also:
- Constant Field Values
-
WITHIN
public static final int WITHIN
- See Also:
- Constant Field Values
-
ENCAPSULATED
public static final int ENCAPSULATED
- See Also:
- Constant Field Values
-
PARTIAL
public static final int PARTIAL
- See Also:
- Constant Field Values
-
FINAL
public static final int FINAL
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
MODEL
public static final int MODEL
- See Also:
- Constant Field Values
-
OPERATOR
public static final int OPERATOR
- See Also:
- Constant Field Values
-
RECORD
public static final int RECORD
- See Also:
- Constant Field Values
-
BLOCK
public static final int BLOCK
- See Also:
- Constant Field Values
-
EXPANDABLE
public static final int EXPANDABLE
- See Also:
- Constant Field Values
-
CONNECTOR
public static final int CONNECTOR
- See Also:
- Constant Field Values
-
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
-
PACKAGE
public static final int PACKAGE
- See Also:
- Constant Field Values
-
PURE
public static final int PURE
- See Also:
- Constant Field Values
-
IMPURE
public static final int IMPURE
- See Also:
- Constant Field Values
-
FUNCTION
public static final int FUNCTION
- See Also:
- Constant Field Values
-
EXTENDS
public static final int EXTENDS
- See Also:
- Constant Field Values
-
END
public static final int END
- See Also:
- Constant Field Values
-
ENUMERATION
public static final int ENUMERATION
- See Also:
- Constant Field Values
-
PUBLIC
public static final int PUBLIC
- See Also:
- Constant Field Values
-
PROTECTED
public static final int PROTECTED
- See Also:
- Constant Field Values
-
EXTERNAL
public static final int EXTERNAL
- See Also:
- Constant Field Values
-
REDECLARE
public static final int REDECLARE
- See Also:
- Constant Field Values
-
INNER
public static final int INNER
- See Also:
- Constant Field Values
-
OUTER
public static final int OUTER
- See Also:
- Constant Field Values
-
REPLACEABLE
public static final int REPLACEABLE
- See Also:
- Constant Field Values
-
CONSTRAINEDBY
public static final int CONSTRAINEDBY
- See Also:
- Constant Field Values
-
FLOW
public static final int FLOW
- See Also:
- Constant Field Values
-
STREAM
public static final int STREAM
- See Also:
- Constant Field Values
-
DISCRETE
public static final int DISCRETE
- See Also:
- Constant Field Values
-
PARAMETER
public static final int PARAMETER
- See Also:
- Constant Field Values
-
CONSTANT
public static final int CONSTANT
- See Also:
- Constant Field Values
-
INPUT
public static final int INPUT
- See Also:
- Constant Field Values
-
OUTPUT
public static final int OUTPUT
- See Also:
- Constant Field Values
-
DER
public static final int DER
- See Also:
- Constant Field Values
-
CONNECT
public static final int CONNECT
- See Also:
- Constant Field Values
-
IF
public static final int IF
- See Also:
- Constant Field Values
-
ASSIGN
public static final int ASSIGN
- See Also:
- Constant Field Values
-
EACH
public static final int EACH
- See Also:
- Constant Field Values
-
INITIAL
public static final int INITIAL
- See Also:
- Constant Field Values
-
EQUATION
public static final int EQUATION
- See Also:
- Constant Field Values
-
ALGORITHM
public static final int ALGORITHM
- See Also:
- Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
- See Also:
- Constant Field Values
-
BREAK
public static final int BREAK
- See Also:
- Constant Field Values
-
RETURN
public static final int RETURN
- See Also:
- Constant Field Values
-
THEN
public static final int THEN
- See Also:
- Constant Field Values
-
ELSEIF
public static final int ELSEIF
- See Also:
- Constant Field Values
-
ELSE
public static final int ELSE
- See Also:
- Constant Field Values
-
FOR
public static final int FOR
- See Also:
- Constant Field Values
-
LOOP
public static final int LOOP
- See Also:
- Constant Field Values
-
IN
public static final int IN
- See Also:
- Constant Field Values
-
WHILE
public static final int WHILE
- See Also:
- Constant Field Values
-
WHEN
public static final int WHEN
- See Also:
- Constant Field Values
-
ELSEWHEN
public static final int ELSEWHEN
- See Also:
- Constant Field Values
-
OR
public static final int OR
- See Also:
- Constant Field Values
-
AND
public static final int AND
- See Also:
- Constant Field Values
-
NOT
public static final int NOT
- See Also:
- Constant Field Values
-
TRUE
public static final int TRUE
- See Also:
- Constant Field Values
-
FALSE
public static final int FALSE
- See Also:
- Constant Field Values
-
LT
public static final int LT
- See Also:
- Constant Field Values
-
LE
public static final int LE
- See Also:
- Constant Field Values
-
GT
public static final int GT
- See Also:
- Constant Field Values
-
GE
public static final int GE
- See Also:
- Constant Field Values
-
EQ
public static final int EQ
- See Also:
- Constant Field Values
-
NEQ
public static final int NEQ
- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
- See Also:
- Constant Field Values
-
ASTERISK
public static final int ASTERISK
- See Also:
- Constant Field Values
-
SLASH
public static final int SLASH
- See Also:
- Constant Field Values
-
HAT
public static final int HAT
- See Also:
- Constant Field Values
-
DOT_PLUS
public static final int DOT_PLUS
- See Also:
- Constant Field Values
-
DOT_MINUS
public static final int DOT_MINUS
- See Also:
- Constant Field Values
-
DOT_ASTERISK
public static final int DOT_ASTERISK
- See Also:
- Constant Field Values
-
DOT_SLASH
public static final int DOT_SLASH
- See Also:
- Constant Field Values
-
DOT_HAT
public static final int DOT_HAT
- See Also:
- Constant Field Values
-
IDENT
public static final int IDENT
- See Also:
- Constant Field Values
-
Q_IDENT
public static final int Q_IDENT
- See Also:
- Constant Field Values
-
S_CHAR
public static final int S_CHAR
- See Also:
- Constant Field Values
-
NONDIGIT
public static final int NONDIGIT
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
Q_CHAR
public static final int Q_CHAR
- See Also:
- Constant Field Values
-
S_ESCAPE
public static final int S_ESCAPE
- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGIT
- See Also:
- Constant Field Values
-
UNSIGNED_INTEGER
public static final int UNSIGNED_INTEGER
- See Also:
- Constant Field Values
-
UNSIGNED_NUMBER
public static final int UNSIGNED_NUMBER
- See Also:
- Constant Field Values
-
WS
public static final int WS
- See Also:
- Constant Field Values
-
LINE_COMMENT
public static final int LINE_COMMENT
- See Also:
- Constant Field Values
-
MULTI_LINE_COMMENT
public static final int MULTI_LINE_COMMENT
- See Also:
- Constant Field Values
-
TOKEN_NAMES
public static final List<String> TOKEN_NAMES
Nams of the tokens, each index corresponds to a kind. See alsodescribe(int)
.
-
-
Method Detail
-
describe
public static @Nullable String describe(int kind)
Returns a string describing the given token kind. Returns null if the kind is unknown.- Parameters:
kind
- Kind of token- Returns:
- A string describing the given kind
-
newTokenManager
@InternalApi public static TokenManager<JavaccToken> newTokenManager(CharStream cs)
Returns a new token manager for this language. The CharStream should be configured with the correct language-specific escaping and token document. This is not a published API, it's intended to be used as a basis for a CPD Tokenizer.
-
-