Class AbstractJType
java.lang.Object
org.jboss.jdeparser.AbstractJType
- All Implemented Interfaces:
JType
- Direct Known Subclasses:
ArrayJType, NarrowedJType, NestedJType, PrimitiveJType, ReferenceJType, ThisJType, WildcardJType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayJTypeprivate CachingLinkedHashMap<String, JAssignableExpr> private WildcardJTypeprivate WildcardJType -
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._new(int dim) Construct a new instance of this array type.Construct a new instance of this array type._newAnon()Construct a new anonymous subclass of this type.Create a new array of this type which is inline-initialized._super()An expression of the formThisType.super._this()An expression of the formThisType.this.Get a nested type within this reference type.Look up a static field on this type.array()An array of this type.box()The primitive-boxed version of this type.Call a static method on this type.call(ExecutableElement method) Call a static method on this type.The element type, if this an array (otherwisenull).final boolean(package private) abstract booleanequals(AbstractJType other) erasure()The erasure of this type.Look up a static field on this type.abstract inthashCode()Get a method reference of this type.methodRef(ExecutableElement method) Get a method reference of this type.nestedType(String name) Get a nested type within this reference type.(package private) static AbstractJType(package private) Stringabstract StringGet the simple name of this type.abstract StringtoString()This type, with the given generic type arguments.This type, with the given generic type arguments.This type, with the given generic type arguments.JType[]typeArgs()Get the type arguments of this type.unbox()The primitive-unboxed version of this type.Get a wildcard that extends this type.Get a wildcard that this type extends.(package private) abstract voidwriteDirect(SourceFileWriter sourceFileWriter)
-
Field Details
-
array
-
wildcardExtends
-
wildcardSuper
-
staticRefs
-
-
Constructor Details
-
AbstractJType
AbstractJType()
-
-
Method Details
-
of
-
qualifiedName
String qualifiedName() -
hashCode
-
equals
-
equals
-
simpleName
Description copied from interface:JTypeGet the simple name of this type.- Specified by:
simpleNamein interfaceJType- Returns:
- the type's simple name
-
toString
-
_class
-
_this
-
_super
-
array
-
_new
-
_new
-
_new
-
_newArray
Description copied from interface:JTypeCreate a new array of this type which is inline-initialized. -
_newAnon
Description copied from interface:JTypeConstruct a new anonymous subclass of this type. -
typeArg
-
typeArg
-
typeArg
-
typeArgs
-
erasure
-
elementType
Description copied from interface:JTypeThe element type, if this an array (otherwisenull).- Specified by:
elementTypein interfaceJType- Returns:
- the element type, or
nullif it is not an array
-
box
-
unbox
-
wildcardExtends
Description copied from interface:JTypeGet a wildcard that extends this type.- Specified by:
wildcardExtendsin interfaceJType- Returns:
- the wildcard
-
wildcardSuper
Description copied from interface:JTypeGet a wildcard that this type extends.- Specified by:
wildcardSuperin interfaceJType- Returns:
- the wildcard
-
nestedType
Description copied from interface:JTypeGet a nested type within this reference type.- Specified by:
nestedTypein interfaceJType- Parameters:
name- the name of the nested type- Returns:
- the nested type
-
$t
-
field
Description copied from interface:JTypeLook up a static field on this type. -
$v
Description copied from interface:JTypeLook up a static field on this type. -
call
-
call
Description copied from interface:JTypeCall a static method on this type. -
methodRef
-
methodRef
Description copied from interface:JTypeGet a method reference of this type. -
writeDirect
- Throws:
IOException
-