public static enum LayoutFileParser.TokenType extends java.lang.Enum<LayoutFileParser.TokenType>
Enum Constant and Description |
---|
ARRAY_DEF |
AT_MARK |
BINARY_LITERAL |
BOOLEAN_LITERAL |
COMMA
左丸括弧
|
DIRECTIVE_HEADER |
EOF |
EOL |
EQ |
IDENTIFIER |
LPAREN |
LT |
NUMBER |
QUESTION_MARK |
RECORD_TYPE_HEADER |
RPAREN |
STRING_LITERAL |
UNKNOWN_TOKEN |
Modifier and Type | Method and Description |
---|---|
LayoutFileParser.Token |
newToken(java.util.regex.MatchResult match,
int line,
int column)
トークンを生成して返却する。
|
java.lang.Object |
value(java.util.regex.MatchResult image)
トークン文字列に対応する値を返却する。
|
static LayoutFileParser.TokenType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LayoutFileParser.TokenType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LayoutFileParser.TokenType COMMA
public static final LayoutFileParser.TokenType LPAREN
public static final LayoutFileParser.TokenType RPAREN
public static final LayoutFileParser.TokenType LT
public static final LayoutFileParser.TokenType QUESTION_MARK
public static final LayoutFileParser.TokenType AT_MARK
public static final LayoutFileParser.TokenType EQ
public static final LayoutFileParser.TokenType DIRECTIVE_HEADER
public static final LayoutFileParser.TokenType RECORD_TYPE_HEADER
public static final LayoutFileParser.TokenType NUMBER
public static final LayoutFileParser.TokenType BOOLEAN_LITERAL
public static final LayoutFileParser.TokenType IDENTIFIER
public static final LayoutFileParser.TokenType ARRAY_DEF
public static final LayoutFileParser.TokenType STRING_LITERAL
public static final LayoutFileParser.TokenType BINARY_LITERAL
public static final LayoutFileParser.TokenType UNKNOWN_TOKEN
public static final LayoutFileParser.TokenType EOL
public static final LayoutFileParser.TokenType EOF
public static LayoutFileParser.TokenType[] values()
for (LayoutFileParser.TokenType c : LayoutFileParser.TokenType.values()) System.out.println(c);
public static LayoutFileParser.TokenType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Object value(java.util.regex.MatchResult image)
image
- トークン文字列public LayoutFileParser.Token newToken(java.util.regex.MatchResult match, int line, int column)
match
- トークンの一致部分line
- トークン開始行column
- トークン開始桁