Class Signatures.ClassnameAndDimensions

java.lang.Object
org.plumelib.reflection.Signatures.ClassnameAndDimensions
Enclosing class:
Signatures

public static class Signatures.ClassnameAndDimensions extends Object
A representation of an array: A pair of class name (a binary name or primitive) and the number of array dimensions.
  • Field Details

    • classname

      public final @BinaryNameOrPrimitiveType String classname
      The class name. It is a binary name or a primitive.
    • dimensions

      public final int dimensions
      The number of array dimensions.
  • Constructor Details

    • ClassnameAndDimensions

      public ClassnameAndDimensions(@BinaryNameOrPrimitiveType String classname, int dimensions)
      Create a new ClassnameAndDimensions.
      Parameters:
      classname - the class name: a binary name or a primitive
      dimensions - the number of array dimensions
  • Method Details

    • parseFqBinaryName

      public static Signatures.ClassnameAndDimensions parseFqBinaryName(@FqBinaryName String typename)
      Constructs a new ClassnameAndDimensions by parsing a fully-qualified binary name.
      Parameters:
      typename - the type name to parse, as a fully-qualified binary name (= fully-qualified name, but with $ separating outer from inner types)
      Returns:
      the result of parsing the type name