Enum StandardSyntaxTag
- All Implemented Interfaces:
SyntaxTag
,Serializable
,Comparable<StandardSyntaxTag>
,java.lang.constant.Constable
A somewhat language-agnostic set of user-sensible syntactic categories, suitable for conventional
imperative languages, and is being developed incrementally.
The need for alternative sets of tags is likely to arise, perhaps for other families of languages (for example for mostly expression-oriented languages) or even for specific languages.
Disclaimer: experimental interface under development.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMarker for a variable assignment.Marker for a call site.Marker that is attached to some arbitrary locations that appear often-enough in an AST so that a location with this tag is regularly executed.Marker for the start of the body of a loop.Marker for the start of the body of a method.Marker for a location where ordinary "stepping" should halt.Marker for a location where a guest language exception is about to be thrown. -
Method Summary
Modifier and TypeMethodDescriptionCriteria and example uses for the tag.getName()
static StandardSyntaxTag
Returns the enum constant of this type with the specified name.static StandardSyntaxTag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ASSIGNMENT
Marker for a variable assignment. -
CALL
Marker for a call site. -
THROW
Marker for a location where a guest language exception is about to be thrown. -
STATEMENT
Marker for a location where ordinary "stepping" should halt. -
START_METHOD
Marker for the start of the body of a method. -
START_LOOP
Marker for the start of the body of a loop. -
PERIODIC
Marker that is attached to some arbitrary locations that appear often-enough in an AST so that a location with this tag is regularly executed. Could be the start of method and loop bodies. May be used to implement some kind of safepoint functionality.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getName
-
getDescription
Description copied from interface:SyntaxTag
Criteria and example uses for the tag.- Specified by:
getDescription
in interfaceSyntaxTag
-