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) booleanequals(AbstractJType other) private booleanequals(NarrowedJType other) erasure()The erasure of this type.inthashCode()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) voidwriteDirect(SourceFileWriter sourceFileWriter) Methods inherited from class 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:
equalsin classAbstractJType
-
equals
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractJType
-
simpleName
Description copied from interface:JTypeGet the simple name of this type.- Specified by:
simpleNamein interfaceJType- Specified by:
simpleNamein classAbstractJType- Returns:
- the type's simple name
-
_class
-
_this
-
_super
-
_new
-
_new
Description copied from interface:JTypeConstruct a new instance of this array type. If the type is not an array type, an exception is thrown.- Specified by:
_newin interfaceJType- Overrides:
_newin classAbstractJType- Parameters:
dim- the array size- Returns:
- the construction call
-
typeArg
-
concat
-
typeArgs
-
erasure
-
call
-
nestedType
Description copied from interface:JTypeGet a nested type within this reference type.- Specified by:
nestedTypein interfaceJType- Overrides:
nestedTypein classAbstractJType- Parameters:
name- the name of the nested type- Returns:
- the nested type
-
writeDirect
- Specified by:
writeDirectin classAbstractJType- Throws:
IOException
-
toString
- Specified by:
toStringin classAbstractJType
-