Package org.jboss.jdeparser
Class NarrowedJType
java.lang.Object
org.jboss.jdeparser.AbstractJType
org.jboss.jdeparser.NarrowedJType
- All Implemented Interfaces:
JType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_class()
An expression of the formThisType.class
._new()
Construct a new instance of this non-array type.Construct a new instance of this array type._super()
An expression of the formThisType.super
._this()
An expression of the formThisType.this
.Call a static method on this type.private static JType[]
(package private) boolean
equals
(AbstractJType other) private boolean
equals
(NarrowedJType other) erasure()
The erasure of this type.int
hashCode()
nestedType
(String name) Get a nested type within this reference type.Get the simple name of this type.toString()
This type, with the given generic type arguments.JType[]
typeArgs()
Get the type arguments of this type.(package private) void
writeDirect
(SourceFileWriter sourceFileWriter) Methods inherited from class org.jboss.jdeparser.AbstractJType
_new, _newAnon, _newArray, $t, $v, array, box, call, elementType, equals, field, methodRef, methodRef, of, qualifiedName, typeArg, typeArg, unbox, wildcardExtends, wildcardSuper
-
Field Details
-
erased
-
args
-
-
Constructor Details
-
NarrowedJType
-
-
Method Details
-
equals
- Specified by:
equals
in classAbstractJType
-
equals
-
hashCode
public int hashCode()- Specified by:
hashCode
in classAbstractJType
-
simpleName
Description copied from interface:JType
Get the simple name of this type.- Specified by:
simpleName
in interfaceJType
- Specified by:
simpleName
in classAbstractJType
- Returns:
- the type's simple name
-
_class
Description copied from interface:JType
An expression of the formThisType.class
.- Specified by:
_class
in interfaceJType
- Overrides:
_class
in classAbstractJType
- Returns:
- the expression
-
_this
Description copied from interface:JType
An expression of the formThisType.this
. If the type is an array type, an exception is thrown.- Specified by:
_this
in interfaceJType
- Overrides:
_this
in classAbstractJType
- Returns:
- the expression
-
_super
Description copied from interface:JType
An expression of the formThisType.super
. If the type is an array type, an exception is thrown.- Specified by:
_super
in interfaceJType
- Overrides:
_super
in classAbstractJType
- Returns:
- the expression
-
_new
Description copied from interface:JType
Construct a new instance of this non-array type. If the type is an array type, an exception is thrown.- Specified by:
_new
in interfaceJType
- Overrides:
_new
in classAbstractJType
- Returns:
- the construction call
-
_new
Description copied from interface:JType
Construct a new instance of this array type. If the type is not an array type, an exception is thrown.- Specified by:
_new
in interfaceJType
- Overrides:
_new
in classAbstractJType
- Parameters:
dim
- the array size- Returns:
- the construction call
-
typeArg
Description copied from interface:JType
This type, with the given generic type arguments.- Specified by:
typeArg
in interfaceJType
- Overrides:
typeArg
in classAbstractJType
- Parameters:
args
- the type arguments- Returns:
- the generic type
-
concat
-
typeArgs
Description copied from interface:JType
Get the type arguments of this type.- Specified by:
typeArgs
in interfaceJType
- Overrides:
typeArgs
in classAbstractJType
- Returns:
- the type arguments of this type
-
erasure
Description copied from interface:JType
The erasure of this type.- Specified by:
erasure
in interfaceJType
- Overrides:
erasure
in classAbstractJType
- Returns:
- the erasure of this type
-
call
Description copied from interface:JType
Call a static method on this type.- Specified by:
call
in interfaceJType
- Overrides:
call
in classAbstractJType
- Parameters:
name
- the method to call- Returns:
- the method call
-
nestedType
Description copied from interface:JType
Get a nested type within this reference type.- Specified by:
nestedType
in interfaceJType
- Overrides:
nestedType
in classAbstractJType
- Parameters:
name
- the name of the nested type- Returns:
- the nested type
-
writeDirect
- Specified by:
writeDirect
in classAbstractJType
- Throws:
IOException
-
toString
- Specified by:
toString
in classAbstractJType
-