Schnittstelle Invocation

Alle Superschnittstellen:
InvocationSite
Alle bekannten Implementierungsklassen:
AllocationExpression, CodeSnippetAllocationExpression, CodeSnippetMessageSend, CompletionOnExplicitConstructorCall, CompletionOnJavadocAllocationExpression, CompletionOnJavadocMessageSend, CompletionOnMessageSend, CompletionOnMessageSendName, CompletionOnQualifiedAllocationExpression, ExplicitConstructorCall, JavadocAllocationExpression, JavadocMessageSend, KnownMessageSend, MessageSend, Proceed, QualifiedAllocationExpression, SelectionOnExplicitConstructorCall, SelectionOnMessageSend, SelectionOnQualifiedAllocationExpression

public interface Invocation extends InvocationSite
Abstraction for invocation AST nodes that can trigger overload resolution possibly involving type inference
  • Methodendetails

    • arguments

      Expression[] arguments()
    • binding

      MethodBinding binding()
      Answer the resolved method binding of this invocation
    • registerInferenceContext

      void registerInferenceContext(ParameterizedGenericMethodBinding method, InferenceContext18 infCtx18)
      Register the given inference context, which produced the given method as its intermediate result. Later when the same method is selected as the most specific method, the inference context for this pair (Invocation x MethodBinding) can be looked up using getInferenceContext(ParameterizedMethodBinding) to continue the type inference.
    • getInferenceContext

      InferenceContext18 getInferenceContext(ParameterizedMethodBinding method)
      Retrieve an inference context for the given method.
      Parameter:
      method - an intermediate resolved candidate for this invocation return the associated inference context.
    • cleanUpInferenceContexts

      void cleanUpInferenceContexts()
      Discard any state from type inference when compilation is done.
    • registerResult

      void registerResult(TypeBinding targetType, MethodBinding method)
      Record result against target type