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

public enum ExpressionContext extends Enum<ExpressionContext>
  • Enum-Konstanten - Details

    • ASSIGNMENT_CONTEXT

      public static final ExpressionContext 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

      public static final ExpressionContext 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

      public static final ExpressionContext CASTING_CONTEXT
      Casting context: potential poly-expressions are: lambdas and reference expressions Context induced by: CastExpression.
    • VANILLA_CONTEXT

      public static final ExpressionContext 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

      public static ExpressionContext[] 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

      public static ExpressionContext valueOf(String name)
      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ält
      NullPointerException - wenn das Argument nicht angegeben wird
    • definesTargetType

      public abstract boolean definesTargetType()