class NestedJType extends AbstractJType
| Modifier and Type | Field and Description |
|---|---|
private StaticRefJExpr |
classExpr |
private AbstractJType |
enclosingType |
private java.lang.String |
name |
private CachingLinkedHashMap<java.lang.String,NestedJType> |
nestedTypes |
private StaticRefJExpr |
superExpr |
private StaticRefJExpr |
thisExpr |
| Constructor and Description |
|---|
NestedJType(AbstractJType enclosingType,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
JExpr |
_class()
An expression of the form
ThisType.class. |
JCall |
_new(JExpr dim)
Construct a new instance of this array type.
|
JAnonymousClassDef |
_newAnon()
Construct a new anonymous subclass of this type.
|
JExpr |
_super()
An expression of the form
ThisType.super. |
JExpr |
_this()
An expression of the form
ThisType.this. |
(package private) boolean |
equals(AbstractJType other) |
private boolean |
equals(NestedJType other) |
int |
hashCode() |
JType |
nestedType(java.lang.String name)
Get a nested type within this reference type.
|
(package private) java.lang.String |
qualifiedName() |
java.lang.String |
simpleName()
Get the simple name of this type.
|
java.lang.String |
toString() |
JType |
typeArg(JType... args)
This type, with the given generic type arguments.
|
(package private) void |
writeDirect(SourceFileWriter writer) |
private final AbstractJType enclosingType
private final java.lang.String name
private StaticRefJExpr classExpr
private StaticRefJExpr thisExpr
private StaticRefJExpr superExpr
private CachingLinkedHashMap<java.lang.String,NestedJType> nestedTypes
NestedJType(AbstractJType enclosingType, java.lang.String name)
java.lang.String qualifiedName()
qualifiedName in class AbstractJTypepublic JExpr _class()
JTypeThisType.class._class in interface JType_class in class AbstractJTypepublic JExpr _this()
JTypeThisType.this. If the type is an array type, an exception is thrown._this in interface JType_this in class AbstractJTypepublic JExpr _super()
JTypeThisType.super. If the type is an array type, an exception is thrown._super in interface JType_super in class AbstractJTypepublic JCall _new(JExpr dim)
JType_new in interface JType_new in class AbstractJTypedim - the array sizepublic JAnonymousClassDef _newAnon()
JType_newAnon in interface JType_newAnon in class AbstractJTypeboolean equals(AbstractJType other)
equals in class AbstractJTypeprivate boolean equals(NestedJType other)
public int hashCode()
hashCode in class AbstractJTypepublic java.lang.String simpleName()
JTypesimpleName in interface JTypesimpleName in class AbstractJTypepublic JType typeArg(JType... args)
JTypetypeArg in interface JTypetypeArg in class AbstractJTypeargs - the type argumentspublic JType nestedType(java.lang.String name)
JTypenestedType in interface JTypenestedType in class AbstractJTypename - the name of the nested typepublic java.lang.String toString()
toString in class AbstractJTypevoid writeDirect(SourceFileWriter writer) throws java.io.IOException
writeDirect in class AbstractJTypejava.io.IOException