public enum ExpressionContext extends Enum<ExpressionContext>
| Enum Constant and Description |
|---|
ASSIGNMENT_CONTEXT
Assignment context: potential poly-expressions are: method invocations, lambdas, reference expressions,
conditional expressions and allocation expressions.
|
CASTING_CONTEXT
Casting context: potential poly-expressions are: lambdas and reference expressions
Context induced by: CastExpression.
|
INVOCATION_CONTEXT
Invocation context: potential poly-expressions are: method invocations, lambdas, reference expressions,
conditional expressions and allocation expressions.
|
VANILLA_CONTEXT
Vanilla context (string, numeric): potential poly-expressions are: NONE.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
definesTargetType() |
static ExpressionContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExpressionContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExpressionContext ASSIGNMENT_CONTEXT
public static final ExpressionContext INVOCATION_CONTEXT
public static final ExpressionContext CASTING_CONTEXT
public static final ExpressionContext VANILLA_CONTEXT
public static ExpressionContext[] values()
for (ExpressionContext c : ExpressionContext.values()) System.out.println(c);
public static ExpressionContext valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract boolean definesTargetType()
Copyright © 2015. All rights reserved.