Klasse ArrayQualifiedTypeReference

Alle implementierten Schnittstellen:
TypeConstants, TypeIds
Bekannte direkte Unterklassen:
JavadocArrayQualifiedTypeReference, ParameterizedQualifiedTypeReference

public class ArrayQualifiedTypeReference extends QualifiedTypeReference
  • Felddetails

    • extendedDimensions

      public int extendedDimensions
  • Konstruktordetails

    • ArrayQualifiedTypeReference

      public ArrayQualifiedTypeReference(char[][] sources, int dim, long[] poss)
    • ArrayQualifiedTypeReference

      public ArrayQualifiedTypeReference(char[][] sources, int dim, Annotation[][] annotationsOnDimensions, long[] poss)
  • Methodendetails

    • dimensions

      public int dimensions()
      Setzt außer Kraft:
      dimensions in Klasse TypeReference
    • extraDimensions

      public int extraDimensions()
      Beschreibung aus Klasse kopiert: TypeReference
      This method is used to return the array dimension declared after the name of a local or a field declaration. For example: int i, j[] = null, k[][] = {{}}; It should return 0 for i, 1 for j and 2 for k.
      Setzt außer Kraft:
      extraDimensions in Klasse TypeReference
      Gibt zurück:
      int the extra dimension found
    • getAnnotationsOnDimensions

      public Annotation[][] getAnnotationsOnDimensions(boolean useSourceOrder)
      Setzt außer Kraft:
      getAnnotationsOnDimensions in Klasse TypeReference
      Parameter:
      useSourceOrder - if true annotations on dimensions are returned in source order, otherwise they are returned per how they ought to be interpreted by a type system, or external persistence view. For example, given the following: int @Nullable [] f @NonNull [] ==> f is really a @NonNull array of @Nullable arrays of ints. This is the type system view since extended dimensions bind more readily than type components that precede the identifier. This is how it ought to be encoded in bindings and how it ought to be persisted in class files. However for DOM/AST construction, we need the dimensions in source order, so we provide a way for the clients to ask what they want.
      Siehe auch:
      • Ungültige Referenz
        org.eclipse.jdt.internal.compiler.ast.TypeReference#getAnnotationsOnDimensions(boolean)
    • setAnnotationsOnDimensions

      public void setAnnotationsOnDimensions(Annotation[][] annotationsOnDimensions)
      Setzt außer Kraft:
      setAnnotationsOnDimensions in Klasse TypeReference
    • getTopAnnotations

      public Annotation[] getTopAnnotations()
      Setzt außer Kraft:
      getTopAnnotations in Klasse TypeReference
    • getParameterizedTypeName

      public char[][] getParameterizedTypeName()
      Setzt außer Kraft:
      getParameterizedTypeName in Klasse TypeReference
      Gibt zurück:
      char[][]
    • getTypeBinding

      protected TypeBinding getTypeBinding(Scope scope)
      Setzt außer Kraft:
      getTypeBinding in Klasse QualifiedTypeReference
    • internalResolveType

      protected TypeBinding internalResolveType(Scope scope, int location)
      Setzt außer Kraft:
      internalResolveType in Klasse TypeReference
    • printExpression

      public StringBuffer printExpression(int indent, StringBuffer output)
      Setzt außer Kraft:
      printExpression in Klasse QualifiedTypeReference
    • traverse

      public void traverse(ASTVisitor visitor, BlockScope scope)
      Beschreibung aus Klasse kopiert: Expression
      Traverse an expression in the context of a blockScope
      Setzt außer Kraft:
      traverse in Klasse QualifiedTypeReference
      Parameter:
      visitor -
      scope -
    • traverse

      public void traverse(ASTVisitor visitor, ClassScope scope)
      Beschreibung aus Klasse kopiert: Expression
      Traverse an expression in the context of a classScope
      Setzt außer Kraft:
      traverse in Klasse QualifiedTypeReference
      Parameter:
      visitor -
      scope -