Package org.jboss.jdeparser
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
public abstract int 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
Description copied from interface:JTypeAn expression of the formThisType.class. -
_this
Description copied from interface:JTypeAn expression of the formThisType.this. If the type is an array type, an exception is thrown. -
_super
Description copied from interface:JTypeAn expression of the formThisType.super. If the type is an array type, an exception is thrown. -
array
Description copied from interface:JTypeAn array of this type. -
_new
Description copied from interface:JTypeConstruct a new instance of this non-array type. If the type is an array type, an exception is thrown. -
_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. -
_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. -
_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
Description copied from interface:JTypeThis type, with the given generic type arguments. -
typeArg
Description copied from interface:JTypeThis type, with the given generic type arguments. -
typeArg
Description copied from interface:JTypeThis type, with the given generic type arguments. -
typeArgs
Description copied from interface:JTypeGet the type arguments of this type. -
erasure
Description copied from interface:JTypeThe erasure of this type. -
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
Description copied from interface:JTypeThe primitive-boxed version of this type. -
unbox
Description copied from interface:JTypeThe primitive-unboxed version of this type. -
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
Description copied from interface:JTypeGet a nested type within this reference type. -
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
Description copied from interface:JTypeCall a static method on this type. -
call
Description copied from interface:JTypeCall a static method on this type. -
methodRef
Description copied from interface:JTypeGet a method reference of this type. -
methodRef
Description copied from interface:JTypeGet a method reference of this type. -
writeDirect
- Throws:
IOException
-