class NarrowedJType extends AbstractJType
| Modifier and Type | Field and Description |
|---|---|
private JType[] |
args |
private AbstractJType |
erased |
| Constructor and Description |
|---|
NarrowedJType(AbstractJType erased,
JType[] args) |
| Modifier and Type | Method and Description |
|---|---|
JExpr |
_class()
An expression of the form
ThisType.class. |
JCall |
_new()
Construct a new instance of this non-array type.
|
JCall |
_new(JExpr dim)
Construct a new instance of this array type.
|
JExpr |
_super()
An expression of the form
ThisType.super. |
JExpr |
_this()
An expression of the form
ThisType.this. |
JCall |
call(java.lang.String name)
Call a static method on this type.
|
private static JType[] |
concat(JType[] a,
JType[] b) |
JType |
erasure()
The erasure of this type.
|
JType |
nestedType(java.lang.String name)
Get a nested type within this reference type.
|
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.
|
JType[] |
typeArgs()
Get the type arguments of this type.
|
(package private) void |
writeDirect(SourceFileWriter sourceFileWriter) |
_new, _newAnon, _newArray, $t, $v, array, box, call, elementType, field, methodRef, methodRef, of, qualifiedName, typeArg, typeArg, unbox, wildcardExtends, wildcardSuperprivate final AbstractJType erased
private final JType[] args
public NarrowedJType(AbstractJType erased, JType[] args)
public java.lang.String simpleName()
JTypesimpleName in interface JTypesimpleName 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()
JType_new in interface JType_new in class AbstractJTypepublic JCall _new(JExpr dim)
JType_new in interface JType_new in class AbstractJTypedim - the array sizepublic JType typeArg(JType... args)
JTypetypeArg in interface JTypetypeArg in class AbstractJTypeargs - the type argumentspublic JType[] typeArgs()
JTypetypeArgs in interface JTypetypeArgs in class AbstractJTypepublic JType erasure()
JTypeerasure in interface JTypeerasure in class AbstractJTypepublic JCall call(java.lang.String name)
JTypecall in interface JTypecall in class AbstractJTypename - the method to callpublic JType nestedType(java.lang.String name)
JTypenestedType in interface JTypenestedType in class AbstractJTypename - the name of the nested typevoid writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
writeDirect in class AbstractJTypejava.io.IOExceptionpublic java.lang.String toString()
toString in class AbstractJType