Package com.tonic.analysis.query.eval
Enum SubjectKind
- java.lang.Object
-
- java.lang.Enum<SubjectKind>
-
- com.tonic.analysis.query.eval.SubjectKind
-
- All Implemented Interfaces:
Serializable,Comparable<SubjectKind>
public enum SubjectKind extends Enum<SubjectKind>
The type of entity an evaluation is currently bound to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARGOne argument of a call site, which inherits that call's evaluation context.BOOTSTRAP_ARGA static bootstrap argument, identified only by its constant pool index; dynamic ones bind asDYNAMICinstead.CALLAn invocation site, narrower thanINSTRUCTIONand the owner of its argument subjects.CLASSA whole class file, the outermost level a query can bind to.DYNAMICAn invokedynamic call site or dynamic constant, carrying its resolved bootstrap.FIELD_ACCESSOne site that reads or writes a field, covering both directions.INSTRUCTIONA single instruction in a method body, identified by its position there.METHODA single method, the level attributes about a body as a whole resolve against.PARAMA parameter declared in a method signature, the callee-side counterpart ofARG.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SubjectKindvalueOf(String name)Returns the enum constant of this type with the specified name.static SubjectKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CLASS
public static final SubjectKind CLASS
A whole class file, the outermost level a query can bind to.
-
METHOD
public static final SubjectKind METHOD
A single method, the level attributes about a body as a whole resolve against.
-
INSTRUCTION
public static final SubjectKind INSTRUCTION
A single instruction in a method body, identified by its position there.
-
CALL
public static final SubjectKind CALL
An invocation site, narrower thanINSTRUCTIONand the owner of its argument subjects.
-
ARG
public static final SubjectKind ARG
One argument of a call site, which inherits that call's evaluation context.
-
PARAM
public static final SubjectKind PARAM
A parameter declared in a method signature, the callee-side counterpart ofARG.
-
FIELD_ACCESS
public static final SubjectKind FIELD_ACCESS
One site that reads or writes a field, covering both directions.
-
DYNAMIC
public static final SubjectKind DYNAMIC
An invokedynamic call site or dynamic constant, carrying its resolved bootstrap.
-
BOOTSTRAP_ARG
public static final SubjectKind BOOTSTRAP_ARG
A static bootstrap argument, identified only by its constant pool index; dynamic ones bind asDYNAMICinstead.
-
-
Method Detail
-
values
public static SubjectKind[] 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 (SubjectKind c : SubjectKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubjectKind 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
-
-