public final class ArrayBinding extends TypeBinding
  • Felddetails

    • ArrayLength

      public static final FieldBinding ArrayLength
    • leafComponentType

      public TypeBinding leafComponentType
    • dimensions

      public int dimensions
    • nullTagBitsPerDimension

      public long[] nullTagBitsPerDimension
  • Konstruktordetails

  • Methodendetails

    • closestMatch

      public TypeBinding closestMatch()
      Beschreibung aus Klasse kopiert: TypeBinding
      In case of problems, returns the closest match found. It may not be perfect match, but the result of a best effort to improve fault-tolerance.
      Setzt außer Kraft:
      closestMatch in Klasse TypeBinding
    • collectMissingTypes

      public List<TypeBinding> collectMissingTypes(List<TypeBinding> missingTypes)
      Beschreibung aus Klasse kopiert: TypeBinding
      Iterate through the type components to collect instances of leaf missing types
      Setzt außer Kraft:
      collectMissingTypes in Klasse TypeBinding
      Parameter:
      missingTypes -
      Gibt zurück:
      missing types
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.compiler.lookup.TypeBinding#collectMissingTypes(java.util.List)
    • collectSubstitutes

      public void collectSubstitutes(Scope scope, TypeBinding actualType, InferenceContext inferenceContext, int constraint)
      Beschreibung aus Klasse kopiert: TypeBinding
      Collect the substitutes into a map for certain type variables inside the receiver type e.g. Collection.findSubstitute(T, CollectionUngültige Eingabe: "<"List>): T --> List Constraints: A Ungültige Eingabe: "<"Ungültige Eingabe: "<" F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_EXTENDS (1)) A = F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_EQUAL (0)) A >> F corresponds to: F.collectSubstitutes(..., A, ..., CONSTRAINT_SUPER (2))
      Setzt außer Kraft:
      collectSubstitutes in Klasse TypeBinding
    • mentionsAny

      public boolean mentionsAny(TypeBinding[] parameters, int idx)
      Beschreibung aus Klasse kopiert: TypeBinding
      Does this type mention any of the given type parameters, except the one at position 'idx'?
      Setzt außer Kraft:
      mentionsAny in Klasse TypeBinding
    • computeUniqueKey

      public char[] computeUniqueKey(boolean isLeaf)
      Setzt außer Kraft:
      computeUniqueKey in Klasse Binding
    • constantPoolName

      public char[] constantPoolName()
      Beschreibung aus Klasse kopiert: TypeBinding
      Answer the receiver's constant pool name. NOTE: This method should only be used during/after code gen. e.g. 'java/lang/Object'
      Angegeben von:
      constantPoolName in Klasse TypeBinding
    • debugName

      public String debugName()
      Setzt außer Kraft:
      debugName in Klasse TypeBinding
    • annotatedDebugName

      public String annotatedDebugName()
      Setzt außer Kraft:
      annotatedDebugName in Klasse TypeBinding
    • dimensions

      public int dimensions()
      Setzt außer Kraft:
      dimensions in Klasse TypeBinding
    • elementsType

      public TypeBinding elementsType()
    • erasure

      public TypeBinding erasure()
      Setzt außer Kraft:
      erasure in Klasse TypeBinding
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.compiler.lookup.TypeBinding#erasure()
    • upwardsProjection

      public ArrayBinding upwardsProjection(Scope scope, TypeBinding[] mentionedTypeVariables)
      Beschreibung aus Klasse kopiert: TypeBinding
      Perform an upwards type projection as per JLS 4.10.5
      Setzt außer Kraft:
      upwardsProjection in Klasse TypeBinding
      Parameter:
      scope - Relevant scope for evaluating type projection
      mentionedTypeVariables - Filter for mentioned type variabled
    • downwardsProjection

      public ArrayBinding downwardsProjection(Scope scope, TypeBinding[] mentionedTypeVariables)
      Beschreibung aus Klasse kopiert: TypeBinding
      Perform a downwards type projection as per JLS 4.10.5
      Setzt außer Kraft:
      downwardsProjection in Klasse TypeBinding
      Parameter:
      scope - Relevant scope for evaluating type projection
      mentionedTypeVariables - Filter for mentioned type variabled
    • environment

      public LookupEnvironment environment()
    • genericTypeSignature

      public char[] genericTypeSignature()
      Beschreibung aus Klasse kopiert: TypeBinding
      Answer the receiver classfile signature. Arrays Ungültige Eingabe: "&" base types do not distinguish between signature() Ungültige Eingabe: "&" constantPoolName(). NOTE: This method should only be used during/after code gen.
      Setzt außer Kraft:
      genericTypeSignature in Klasse TypeBinding
    • getPackage

      public PackageBinding getPackage()
      Angegeben von:
      getPackage in Klasse TypeBinding
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • isCompatibleWith

      public boolean isCompatibleWith(TypeBinding otherType, Scope captureScope)
      Angegeben von:
      isCompatibleWith in Klasse TypeBinding
    • isSubtypeOf

      public boolean isSubtypeOf(TypeBinding otherType, boolean simulatingBugJDK8026527)
      Setzt außer Kraft:
      isSubtypeOf in Klasse TypeBinding
    • isProperType

      public boolean isProperType(boolean admitCapture18)
      Beschreibung aus Klasse kopiert: TypeBinding
      JLS8 Sect 18.1.1
      Setzt außer Kraft:
      isProperType in Klasse TypeBinding
      Parameter:
      admitCapture18 - request if CaptureBinding18 shuld be considered as a proper type. If unsure say 'true', only in Scope.greaterLowerBound(TypeBinding[], Scope, LookupEnvironment) CaptureBinding18 has to be excluded to prevent an NPE on a branch that heuristically tries to avoid inconsistent intersections.
    • kind

      public int kind()
      Setzt außer Kraft:
      kind in Klasse TypeBinding
    • leafComponentType

      public TypeBinding leafComponentType()
      Setzt außer Kraft:
      leafComponentType in Klasse TypeBinding
    • nullAnnotatedReadableName

      public char[] nullAnnotatedReadableName(CompilerOptions options, boolean shortNames)
      Beschreibung aus Klasse kopiert: TypeBinding
      Answer a readable name (for error reporting) that includes nullness type annotations.
      Setzt außer Kraft:
      nullAnnotatedReadableName in Klasse TypeBinding
    • problemId

      public int problemId()
      Setzt außer Kraft:
      problemId in Klasse Binding
    • qualifiedSourceName

      public char[] qualifiedSourceName()
      Beschreibung aus Klasse kopiert: TypeBinding
      Answer the source name for the type. In the case of member types, as the qualified name from its top level type. For example, for a member type N defined inside M Ungültige Eingabe: "&" A: "A.M.N".
      Angegeben von:
      qualifiedSourceName in Klasse TypeBinding
    • readableName

      public char[] readableName()
      Angegeben von:
      readableName in Klasse Binding
    • setTypeAnnotations

      public void setTypeAnnotations(AnnotationBinding[] annotations, boolean evalNullAnnotations)
      Setzt außer Kraft:
      setTypeAnnotations in Klasse TypeBinding
    • shortReadableName

      public char[] shortReadableName()
      Setzt außer Kraft:
      shortReadableName in Klasse Binding
    • sourceName

      public char[] sourceName()
      Angegeben von:
      sourceName in Klasse TypeBinding
    • swapUnresolved

      public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env)
      Setzt außer Kraft:
      swapUnresolved in Klasse TypeBinding
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
    • unannotated

      public TypeBinding unannotated()
      Beschreibung aus Klasse kopiert: TypeBinding
      Return this type minus its type annotations
      Setzt außer Kraft:
      unannotated in Klasse TypeBinding
    • withoutToplevelNullAnnotation

      public TypeBinding withoutToplevelNullAnnotation()
      Beschreibung aus Klasse kopiert: TypeBinding
      Return this type minus its toplevel null annotations. Any annotations on type arguments or bounds are retained.
      Setzt außer Kraft:
      withoutToplevelNullAnnotation in Klasse TypeBinding
    • uncapture

      public TypeBinding uncapture(Scope scope)
      Beschreibung aus Klasse kopiert: TypeBinding
      Perform capture "deconversion" on a given type
      Setzt außer Kraft:
      uncapture in Klasse TypeBinding
    • acceptsNonNullDefault

      public boolean acceptsNonNullDefault()
      Beschreibung aus Klasse kopiert: TypeBinding
      Used to implement this sentence from o.e.j.annotation.DefaultLocation: "Wildcards and the use of type variables are always excluded from NonNullByDefault."
      Setzt außer Kraft:
      acceptsNonNullDefault in Klasse TypeBinding
    • updateTagBits

      public long updateTagBits()
      Beschreibung aus Klasse kopiert: TypeBinding
      Refresh some tagBits from details into the main type. Currently handled: TagBits.HasNullTypeAnnotation
      Setzt außer Kraft:
      updateTagBits in Klasse TypeBinding
    • getCloneMethod

      public MethodBinding getCloneMethod(MethodBinding originalMethod)
      The type of x.clone() is substituted from 'Object' into the type of the receiver array (non-null)
    • isArrayClone

      public static boolean isArrayClone(TypeBinding receiverType, MethodBinding binding)