Klasse FunctionalExpression

Alle implementierten Schnittstellen:
TypeConstants, TypeIds
Bekannte direkte Unterklassen:
LambdaExpression, ReferenceExpression

public abstract class FunctionalExpression extends Expression
  • Felddetails

    • expectedType

      protected TypeBinding expectedType
    • descriptor

      public MethodBinding descriptor
    • binding

      public MethodBinding binding
    • actualMethodBinding

      protected MethodBinding actualMethodBinding
    • expressionContext

      protected ExpressionContext expressionContext
    • compilationResult

      public CompilationResult compilationResult
    • enclosingScope

      public BlockScope enclosingScope
    • bootstrapMethodNumber

      public int bootstrapMethodNumber
    • shouldCaptureInstance

      public boolean shouldCaptureInstance
    • silentErrorHandlingPolicy

      protected static IErrorHandlingPolicy silentErrorHandlingPolicy
    • hasDescripterProblem

      public boolean hasDescripterProblem
    • isSerializable

      public boolean isSerializable
    • ordinal

      public int ordinal
    • text

      public char[] text
  • Konstruktordetails

    • FunctionalExpression

      public FunctionalExpression(CompilationResult compilationResult)
    • FunctionalExpression

      public FunctionalExpression()
  • Methodendetails

    • isBoxingCompatibleWith

      public boolean isBoxingCompatibleWith(TypeBinding targetType, Scope scope)
      Setzt außer Kraft:
      isBoxingCompatibleWith in Klasse Expression
    • setCompilationResult

      public void setCompilationResult(CompilationResult compilationResult)
    • getMethodBinding

      public MethodBinding getMethodBinding()
    • setExpectedType

      public void setExpectedType(TypeBinding expectedType)
      Beschreibung aus Klasse kopiert: Expression
      Record the type expectation before this expression is typechecked. e.g. String s = foo();, foo() will be tagged as being expected of type String Used to trigger proper inference of generic method invocations.
      Setzt außer Kraft:
      setExpectedType in Klasse Expression
      Parameter:
      expectedType - The type denoting an expectation in the context of an assignment conversion
    • setExpressionContext

      public void setExpressionContext(ExpressionContext context)
      Setzt außer Kraft:
      setExpressionContext in Klasse Expression
    • getExpressionContext

      public ExpressionContext getExpressionContext()
      Setzt außer Kraft:
      getExpressionContext in Klasse Statement
    • isPolyExpression

      public boolean isPolyExpression(MethodBinding candidate)
      Beschreibung aus Klasse kopiert: Expression
      Variant of isPolyExpression() to be used during type inference, when a resolution candidate exists.
      Setzt außer Kraft:
      isPolyExpression in Klasse Expression
    • isPolyExpression

      public boolean isPolyExpression()
      Setzt außer Kraft:
      isPolyExpression in Klasse Expression
    • isFunctionalType

      public boolean isFunctionalType()
      Setzt außer Kraft:
      isFunctionalType in Klasse Expression
    • isPertinentToApplicability

      public boolean isPertinentToApplicability(TypeBinding targetType, MethodBinding method)
      Setzt außer Kraft:
      isPertinentToApplicability in Klasse Expression
    • invocationTargetType

      public TypeBinding invocationTargetType()
      Beschreibung aus Klasse kopiert: Statement
      Implementation of InvocationSite.invocationTargetType() suitable at this level. Subclasses should override as necessary.
      Setzt außer Kraft:
      invocationTargetType in Klasse Statement
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.compiler.lookup.InvocationSite#invocationTargetType()
    • expectedType

      public TypeBinding expectedType()
      Beschreibung aus Klasse kopiert: Statement
      Simpler notion of expected type, suitable for code assist purposes.
      Setzt außer Kraft:
      expectedType in Klasse Statement
    • argumentsTypeElided

      public boolean argumentsTypeElided()
    • recordFunctionalType

      public int recordFunctionalType(Scope scope)
    • resolveType

      public TypeBinding resolveType(BlockScope blockScope)
      Beschreibung aus Klasse kopiert: Expression
      Resolve the type of this expression in the context of a blockScope
      Setzt außer Kraft:
      resolveType in Klasse Expression
      Parameter:
      blockScope -
      Gibt zurück:
      Return the actual type of this expression after resolution
    • resolveType

      public TypeBinding resolveType(BlockScope blockScope, boolean skipKosherCheck)
    • reportSamProblem

      protected TypeBinding reportSamProblem(BlockScope blockScope, MethodBinding sam)
    • kosherDescriptor

      public boolean kosherDescriptor(Scope scope, MethodBinding sam, boolean shouldChatter)
    • nullStatus

      public int nullStatus(FlowInfo flowInfo)
    • diagnosticsSourceEnd

      public int diagnosticsSourceEnd()
    • getRequiredBridges

      public MethodBinding[] getRequiredBridges()
    • cleanUp

      public void cleanUp()