Class SrcType


public class SrcType extends SrcAnnotated<SrcType>
  • Constructor Details

    • SrcType

      public SrcType(Class type)
    • SrcType

      public SrcType(String fqn)
  • Method Details

    • getEnclosingType

      public SrcType getEnclosingType()
    • setEnclosingType

      public void setEnclosingType(SrcType enclosingType)
    • addTypeParam

      public SrcType addTypeParam(SrcType srcType)
    • addTypeParam

      public SrcType addTypeParam(Class type)
    • addTypeParam

      public SrcType addTypeParam(String type)
    • setPrimitive

      public void setPrimitive(boolean primitive)
    • setInterface

      public void setInterface(boolean isInterface)
    • setEnum

      public void setEnum(boolean isEnum)
    • setAnnotation

      public void setAnnotation(boolean isAnno)
    • setEllipsis

      public void setEllipsis(boolean isEllipsis)
    • getName

      public String getName()
      If the type is an inner type, this may be a simple name. Call getFqName() for a qualified name.
    • getFqName

      public String getFqName()
    • diamond

      public SrcType diamond()
    • getArrayDims

      public int getArrayDims()
    • isPrimitive

      public boolean isPrimitive()
    • isArray

      public boolean isArray()
    • getTypeParams

      public List<SrcType> getTypeParams()
    • isDiamond

      public boolean isDiamond()
    • getBounds

      public List<SrcType> getBounds()
    • addBound

      public void addBound(SrcType bound)
    • getSuperOrExtends

      public String getSuperOrExtends()
    • setSuperOrExtends

      public void setSuperOrExtends(String superOrExtends)
    • getComponentType

      public SrcType getComponentType()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • render

      public StringBuilder render(StringBuilder sb, int indent)
      Specified by:
      render in class SrcElement
    • render

      public StringBuilder render(StringBuilder sb, int indent, boolean withAnnos)
    • isEnum

      public boolean isEnum()