private static enum FunctionInjector.CallSiteType extends java.lang.Enum<FunctionInjector.CallSiteType>
Enum Constant and Description |
---|
DECOMPOSABLE_EXPRESSION
An arbitrary expression, the root of which is a EXPR_RESULT, IF,
RETURN, SWITCH or VAR.
|
EXPRESSION
An arbitrary expression, the root of which is a EXPR_RESULT, IF,
RETURN, SWITCH or VAR.
|
SIMPLE_ASSIGNMENT
An assignment, where the result of the call is assigned to a simple
name.
|
SIMPLE_CALL
A call as a statement.
|
UNSUPPORTED
Used for a call site for which there does not exist a method
to inline it.
|
VAR_DECL_SIMPLE_ASSIGNMENT
An var declaration and initialization, where the result of the call is
assigned to the declared name
name.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
prepare(FunctionInjector injector,
FunctionInjector.Reference ref) |
static FunctionInjector.CallSiteType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FunctionInjector.CallSiteType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FunctionInjector.CallSiteType UNSUPPORTED
public static final FunctionInjector.CallSiteType SIMPLE_CALL
public static final FunctionInjector.CallSiteType SIMPLE_ASSIGNMENT
public static final FunctionInjector.CallSiteType VAR_DECL_SIMPLE_ASSIGNMENT
public static final FunctionInjector.CallSiteType EXPRESSION
public static final FunctionInjector.CallSiteType DECOMPOSABLE_EXPRESSION
public static FunctionInjector.CallSiteType[] values()
for (FunctionInjector.CallSiteType c : FunctionInjector.CallSiteType.values()) System.out.println(c);
public static FunctionInjector.CallSiteType 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 abstract void prepare(FunctionInjector injector, FunctionInjector.Reference ref)