Package com.tonic.analysis.query.parser
Enum Token.TokenType
- java.lang.Object
-
- java.lang.Enum<Token.TokenType>
-
- com.tonic.analysis.query.parser.Token.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<Token.TokenType>
- Enclosing class:
- Token
public static enum Token.TokenType extends Enum<Token.TokenType>
The lexical kinds of the query language.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTERThe wordafter, reserved for temporal ordering between events; no production consumes it yet.ALLThe wordall, either an unrestricted scope or filler ahead of a target word, as inshow all strings.ALLOC_COUNTThe attribute wordalloccountoralloc_count, naming a count of allocations.ANDThe wordand, conjoining condition terms.ARG_ANYThe argument wordany, matching an argument of any kind.ARG_CALLThe argument wordcallarg, matching an argument that came from another call's result.ARG_DYNAMICThe argument worddynamicordynamicarg, matching an argument only known at run time.ARG_FIELDThe argument wordfieldarg, matching an argument that came from a field read.ARG_LITERALThe argument wordliteral, matching an argument that is a compile-time constant.ARG_LOCALThe argument wordlocalarg, matching an argument that came from a local variable.ASCThe wordasc, an ascending sort direction; also the direction assumed when neither is written.BECOMESThe wordbecomes, reserved for a value-transition predicate; no production consumes it yet.BEFOREThe wordbefore, reserved for temporal ordering between events; no production consumes it yet.BYThe wordby, completingorder byahead of the sort key.CALLSThe attribute wordcalls, naming the invocations made by an entity.CLASSThe wordclass, introducing a class-name pattern for a scope.CLASSESThe target wordclasses, making classes the result rows.CLINITThe wordclinitor the literal<clinit>, scoping a query to static initializer execution.COLONThe character:, separating a run spec key from its value.COMMAThe character,, separating set members, sequence elements and repetition bounds.CONTAINS_STRINGThe attribute wordcontainsstringorcontains_string, naming a string constant an entity carries.COVERAGEThe attribute wordcoverage, naming how much of an entity was reached.DESCThe worddesc, a descending sort direction.DOTThe character., separating accessor steps; a doubled pair forms the sequence gap.DURINGThe wordduring, introducing an execution-time scope rather than a static one.EOFThe end-of-input marker appended after the last real token.EQThe operator==; a single=is not accepted.EVENTSThe target wordevents, making recorded runtime events the result rows.FIELDThe attribute wordfield, naming a field reference.FINDThe wordfind, opening a query that returns matching entities with their evidence.GTThe operator>.GTEThe operator>=.IDENTIFIERA name-like word that matched no keyword, left for the attribute registry to resolve.INThe wordin, introducing a static scope, and doubling as the set membership operator inside a condition.INSTRUCTION_COUNTThe attribute wordinstructioncountorinstruction_count, naming a count of instructions.LBRACEThe character{, opening a repetition count on a sequence element.LBRACKETThe character[, opening a set literal or a sequence.LIMITThe wordlimit, capping the number of results; followed by a number.LPARENThe character(, opening a group, a quantifier body, or an accessor index.LTThe operator<, distinguished from the start of<clinit>by lookahead.LTEThe operator<=.METHODThe wordmethod, introducing a method-name pattern for a static or execution-time scope.METHODSThe target wordmethods, making methods the result rows.NEQThe operator!=; a bare!is a parse error.NON_NULLThe hyphenated wordnon-null, a nullness state; the hyphen keeps it out of the identifier space.NOTThe wordnot, negating the condition that follows it.NULLThe wordnull, the null literal or the null state.NUMBERA numeric literal, possibly signed or fractional; underscore separators are stripped from the value.OBJECTSThe target wordobjects, making allocated objects the result rows.OFThe wordof, tying a<clinit>scope to the classes it should be taken over.ORThe wordor, disjoining condition terms.ORDERThe wordorder, the first half oforder by.PATHSThe target wordpaths, making execution paths the result rows.PLUSThe character+, repeating a sequence element one or more times.RBRACEThe character}, closing a repetition count.RBRACKETThe character], closing what anLBRACKETopened.READS_FIELDThe attribute wordreadsfieldorreads_field, naming the fields an entity loads from.REGEXA slash-delimited pattern; trailing flag letters are folded into the value as an inline(?flags)prefix.RPARENThe character), closing what anLPARENopened.SHOWThe wordshow, opening a query that lists matching entities without evidence.STARThe character*, repeating a sequence element zero or more times.STRINGA quoted literal; the value carries the text with escapes already resolved and quotes stripped.STRINGSThe target wordstrings, making string values the result rows.THROWSThe attribute wordthrows, naming the exceptions an entity can raise.WHEREThe wordwhere, introducing the condition expression, and also the body of a quantifier or count.WITHThe wordwith, introducing the run spec key/value settings that configure execution.WRITES_FIELDThe attribute wordwritesfieldorwrites_field, naming the fields an entity stores to.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Token.TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Token.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FIND
public static final Token.TokenType FIND
The wordfind, opening a query that returns matching entities with their evidence.
-
SHOW
public static final Token.TokenType SHOW
The wordshow, opening a query that lists matching entities without evidence.
-
WHERE
public static final Token.TokenType WHERE
The wordwhere, introducing the condition expression, and also the body of a quantifier or count.
-
IN
public static final Token.TokenType IN
The wordin, introducing a static scope, and doubling as the set membership operator inside a condition.
-
DURING
public static final Token.TokenType DURING
The wordduring, introducing an execution-time scope rather than a static one.
-
AND
public static final Token.TokenType AND
The wordand, conjoining condition terms.
-
OR
public static final Token.TokenType OR
The wordor, disjoining condition terms.
-
NOT
public static final Token.TokenType NOT
The wordnot, negating the condition that follows it.
-
BEFORE
public static final Token.TokenType BEFORE
The wordbefore, reserved for temporal ordering between events; no production consumes it yet.
-
AFTER
public static final Token.TokenType AFTER
The wordafter, reserved for temporal ordering between events; no production consumes it yet.
-
WITH
public static final Token.TokenType WITH
The wordwith, introducing the run spec key/value settings that configure execution.
-
LIMIT
public static final Token.TokenType LIMIT
The wordlimit, capping the number of results; followed by a number.
-
ORDER
public static final Token.TokenType ORDER
The wordorder, the first half oforder by.
-
BY
public static final Token.TokenType BY
The wordby, completingorder byahead of the sort key.
-
ASC
public static final Token.TokenType ASC
The wordasc, an ascending sort direction; also the direction assumed when neither is written.
-
DESC
public static final Token.TokenType DESC
The worddesc, a descending sort direction.
-
OF
public static final Token.TokenType OF
The wordof, tying a<clinit>scope to the classes it should be taken over.
-
ALL
public static final Token.TokenType ALL
The wordall, either an unrestricted scope or filler ahead of a target word, as inshow all strings.
-
CLASS
public static final Token.TokenType CLASS
The wordclass, introducing a class-name pattern for a scope.
-
METHOD
public static final Token.TokenType METHOD
The wordmethod, introducing a method-name pattern for a static or execution-time scope.
-
CLINIT
public static final Token.TokenType CLINIT
The wordclinitor the literal<clinit>, scoping a query to static initializer execution.
-
BECOMES
public static final Token.TokenType BECOMES
The wordbecomes, reserved for a value-transition predicate; no production consumes it yet.
-
NON_NULL
public static final Token.TokenType NON_NULL
The hyphenated wordnon-null, a nullness state; the hyphen keeps it out of the identifier space.
-
NULL
public static final Token.TokenType NULL
The wordnull, the null literal or the null state.
-
METHODS
public static final Token.TokenType METHODS
The target wordmethods, making methods the result rows.
-
CLASSES
public static final Token.TokenType CLASSES
The target wordclasses, making classes the result rows.
-
PATHS
public static final Token.TokenType PATHS
The target wordpaths, making execution paths the result rows.
-
EVENTS
public static final Token.TokenType EVENTS
The target wordevents, making recorded runtime events the result rows.
-
STRINGS
public static final Token.TokenType STRINGS
The target wordstrings, making string values the result rows.
-
OBJECTS
public static final Token.TokenType OBJECTS
The target wordobjects, making allocated objects the result rows.
-
CALLS
public static final Token.TokenType CALLS
The attribute wordcalls, naming the invocations made by an entity.
-
ALLOC_COUNT
public static final Token.TokenType ALLOC_COUNT
The attribute wordalloccountoralloc_count, naming a count of allocations.
-
WRITES_FIELD
public static final Token.TokenType WRITES_FIELD
The attribute wordwritesfieldorwrites_field, naming the fields an entity stores to.
-
READS_FIELD
public static final Token.TokenType READS_FIELD
The attribute wordreadsfieldorreads_field, naming the fields an entity loads from.
-
FIELD
public static final Token.TokenType FIELD
The attribute wordfield, naming a field reference.
-
CONTAINS_STRING
public static final Token.TokenType CONTAINS_STRING
The attribute wordcontainsstringorcontains_string, naming a string constant an entity carries.
-
THROWS
public static final Token.TokenType THROWS
The attribute wordthrows, naming the exceptions an entity can raise.
-
INSTRUCTION_COUNT
public static final Token.TokenType INSTRUCTION_COUNT
The attribute wordinstructioncountorinstruction_count, naming a count of instructions.
-
COVERAGE
public static final Token.TokenType COVERAGE
The attribute wordcoverage, naming how much of an entity was reached.
-
ARG_ANY
public static final Token.TokenType ARG_ANY
The argument wordany, matching an argument of any kind.
-
ARG_LITERAL
public static final Token.TokenType ARG_LITERAL
The argument wordliteral, matching an argument that is a compile-time constant.
-
ARG_DYNAMIC
public static final Token.TokenType ARG_DYNAMIC
The argument worddynamicordynamicarg, matching an argument only known at run time.
-
ARG_FIELD
public static final Token.TokenType ARG_FIELD
The argument wordfieldarg, matching an argument that came from a field read.
-
ARG_LOCAL
public static final Token.TokenType ARG_LOCAL
The argument wordlocalarg, matching an argument that came from a local variable.
-
ARG_CALL
public static final Token.TokenType ARG_CALL
The argument wordcallarg, matching an argument that came from another call's result.
-
IDENTIFIER
public static final Token.TokenType IDENTIFIER
A name-like word that matched no keyword, left for the attribute registry to resolve.
-
STRING
public static final Token.TokenType STRING
A quoted literal; the value carries the text with escapes already resolved and quotes stripped.
-
REGEX
public static final Token.TokenType REGEX
A slash-delimited pattern; trailing flag letters are folded into the value as an inline(?flags)prefix.
-
NUMBER
public static final Token.TokenType NUMBER
A numeric literal, possibly signed or fractional; underscore separators are stripped from the value.
-
LPAREN
public static final Token.TokenType LPAREN
The character(, opening a group, a quantifier body, or an accessor index.
-
RPAREN
public static final Token.TokenType RPAREN
The character), closing what anLPARENopened.
-
LBRACKET
public static final Token.TokenType LBRACKET
The character[, opening a set literal or a sequence.
-
RBRACKET
public static final Token.TokenType RBRACKET
The character], closing what anLBRACKETopened.
-
LBRACE
public static final Token.TokenType LBRACE
The character{, opening a repetition count on a sequence element.
-
RBRACE
public static final Token.TokenType RBRACE
The character}, closing a repetition count.
-
STAR
public static final Token.TokenType STAR
The character*, repeating a sequence element zero or more times.
-
PLUS
public static final Token.TokenType PLUS
The character+, repeating a sequence element one or more times.
-
COMMA
public static final Token.TokenType COMMA
The character,, separating set members, sequence elements and repetition bounds.
-
DOT
public static final Token.TokenType DOT
The character., separating accessor steps; a doubled pair forms the sequence gap.
-
COLON
public static final Token.TokenType COLON
The character:, separating a run spec key from its value.
-
GT
public static final Token.TokenType GT
The operator>.
-
GTE
public static final Token.TokenType GTE
The operator>=.
-
LT
public static final Token.TokenType LT
The operator<, distinguished from the start of<clinit>by lookahead.
-
LTE
public static final Token.TokenType LTE
The operator<=.
-
EQ
public static final Token.TokenType EQ
The operator==; a single=is not accepted.
-
NEQ
public static final Token.TokenType NEQ
The operator!=; a bare!is a parse error.
-
EOF
public static final Token.TokenType EOF
The end-of-input marker appended after the last real token.
-
-
Method Detail
-
values
public static Token.TokenType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Token.TokenType c : Token.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Token.TokenType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-