Package manifold.api.gen
Class SrcType
- java.lang.Object
-
- manifold.api.gen.SrcElement
-
- manifold.api.gen.SrcAnnotated<SrcType>
-
- manifold.api.gen.SrcType
-
public class SrcType extends SrcAnnotated<SrcType>
-
-
Field Summary
-
Fields inherited from class manifold.api.gen.SrcAnnotated
NON_SEALED, SEALED
-
Fields inherited from class manifold.api.gen.SrcElement
INDENT
-
-
Method Summary
-
Methods inherited from class manifold.api.gen.SrcAnnotated
addAnnotation, addAnnotation, addAnnotation, addParam, addParam, addParam, addParam, clearUserData, computeOrGetUserData, forwardParameters, getAnnotation, getAnnotations, getModifiers, getParameters, getSimpleName, getUserData, hasAnnotation, hasAnnotation, insertParam, modifiers, modifiers, modifiersFrom, name, removeUserData, renderAnnotations, renderAnnotations, renderArgumenets, renderModifiers, renderModifiers, renderParameters, renderParameters, withUserData
-
Methods inherited from class manifold.api.gen.SrcElement
getOwner, indent, makeCompileTimeConstantValue, setOwner, toString
-
-
-
-
Method Detail
-
getEnclosingType
public SrcType getEnclosingType()
-
setEnclosingType
public void setEnclosingType(SrcType enclosingType)
-
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()
-
isDiamond
public boolean isDiamond()
-
addBound
public void addBound(SrcType bound)
-
getSuperOrExtends
public String getSuperOrExtends()
-
setSuperOrExtends
public void setSuperOrExtends(String superOrExtends)
-
getComponentType
public SrcType getComponentType()
-
render
public StringBuilder render(StringBuilder sb, int indent)
- Specified by:
renderin classSrcElement
-
render
public StringBuilder render(StringBuilder sb, int indent, boolean withAnnos)
-
isEnum
public boolean isEnum()
-
-