Enum-Klasse ExpressionContext
java.lang.Object
java.lang.Enum<ExpressionContext>
org.aspectj.org.eclipse.jdt.internal.compiler.ast.ExpressionContext
- Alle implementierten Schnittstellen:
Serializable
,Comparable<ExpressionContext>
,java.lang.constant.Constable
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum-Konstanten - Übersicht
Enum-KonstanteBeschreibungAssignment context: potential poly-expressions are: method invocations, lambdas, reference expressions, conditional expressions and allocation expressions.Casting context: potential poly-expressions are: lambdas and reference expressions Context induced by: CastExpression.Invocation context: potential poly-expressions are: method invocations, lambdas, reference expressions, conditional expressions and allocation expressions.Vanilla context (string, numeric): potential poly-expressions are: NONE. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract boolean
static ExpressionContext
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück.static ExpressionContext[]
values()
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
-
Enum-Konstanten - Details
-
ASSIGNMENT_CONTEXT
Assignment context: potential poly-expressions are: method invocations, lambdas, reference expressions, conditional expressions and allocation expressions. This is the only Java 7 context where target type influenced evaluation of some expression. Context induced by: ReturnStatement, ArrayInitializer, Assignment, FieldDeclaration and LocalDeclaration. -
INVOCATION_CONTEXT
Invocation context: potential poly-expressions are: method invocations, lambdas, reference expressions, conditional expressions and allocation expressions. At this point, we don't distinguish between strict and loose invocation contexts - we may have to cross the bridge some day. Context induced by: AllocationExpression, QualifiedAllocationExpression, ExplicitConstructorCall, MessageSend CodeSnippetAllocationExpression and CodeSnippetMessageSend. -
CASTING_CONTEXT
Casting context: potential poly-expressions are: lambdas and reference expressions Context induced by: CastExpression. -
VANILLA_CONTEXT
Vanilla context (string, numeric): potential poly-expressions are: NONE. This is the nonpoly context in which expressions get evaluated, unless they feature in one of the above contexts.
-
-
Methodendetails
-
values
Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.- Gibt zurück:
- ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
-
valueOf
Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)- Parameter:
name
- Name der zurückzugebenden Enumerationskonstante.- Gibt zurück:
- Enumerationskonstante mit dem angegebenen Namen
- Löst aus:
IllegalArgumentException
- wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthältNullPointerException
- wenn das Argument nicht angegeben wird
-
definesTargetType
public abstract boolean definesTargetType()
-