public enum StandardSyntaxTag extends java.lang.Enum<StandardSyntaxTag> implements SyntaxTag
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.
Probe
Enum Constant and Description |
---|
ASSIGNMENT
Marker for a variable assignment.
|
CALL
Marker for a call site.
|
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.
|
START_LOOP
Marker for the start of the body of a loop.
|
START_METHOD
Marker for the start of the body of a method.
|
STATEMENT
Marker for a location where ordinary "stepping" should halt.
|
THROW
Marker for a location where a guest language exception is about to be thrown.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Criteria and example uses for the tag.
|
java.lang.String |
getName() |
static StandardSyntaxTag |
valueOf(java.lang.String name)
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.
|
public static final StandardSyntaxTag ASSIGNMENT
public static final StandardSyntaxTag CALL
public static final StandardSyntaxTag THROW
public static final StandardSyntaxTag STATEMENT
public static final StandardSyntaxTag START_METHOD
public static final StandardSyntaxTag START_LOOP
public static final StandardSyntaxTag PERIODIC
public static StandardSyntaxTag[] values()
for (StandardSyntaxTag c : StandardSyntaxTag.values()) System.out.println(c);
public static StandardSyntaxTag 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.String getName()
public java.lang.String getDescription()
SyntaxTag
getDescription
in interface SyntaxTag