Class ReferenceJType
java.lang.Object
org.jboss.jdeparser.AbstractJType
org.jboss.jdeparser.ReferenceJType
- All Implemented Interfaces:
JType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StaticRefJExprprivate CachingLinkedHashMap<String, NestedJType> private final Stringprivate final Stringprivate StaticRefJExprprivate StaticRefJExprprivate final PrimitiveJType -
Constructor Summary
ConstructorsConstructorDescriptionReferenceJType(String packageName, String simpleName) ReferenceJType(String packageName, String simpleName, PrimitiveJType unboxed) -
Method Summary
Modifier and TypeMethodDescription_class()An expression of the formThisType.class._new()Construct a new instance of this non-array type._newAnon()Construct a new anonymous subclass of this type._super()An expression of the formThisType.super._this()An expression of the formThisType.this.(package private) booleanequals(AbstractJType other) private booleanequals(ReferenceJType other) inthashCode()nestedType(String name) Get a nested type within this reference type.(package private) static ReferenceJType(package private) StringGet the simple name of this type.toString()This type, with the given generic type arguments.unbox()The primitive-unboxed version of this type.(package private) voidwriteDirect(SourceFileWriter sourceFileWriter)
-
Field Details
-
unboxed
-
packageName
-
simpleName
-
classExpr
-
thisExpr
-
superExpr
-
nestedTypes
-
-
Constructor Details
-
ReferenceJType
-
ReferenceJType
ReferenceJType(String packageName, String simpleName, PrimitiveJType unboxed)
-
-
Method Details
-
of
-
qualifiedName
String qualifiedName()- Overrides:
qualifiedNamein 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
-
_newAnon
Description copied from interface:JTypeConstruct a new anonymous subclass of this type.- Specified by:
_newAnonin interfaceJType- Overrides:
_newAnonin classAbstractJType- Returns:
- the anonymous subclass definition
-
unbox
-
writeDirect
- Specified by:
writeDirectin classAbstractJType- Throws:
IOException
-
typeArg
-
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
-
equals
- Specified by:
equalsin classAbstractJType
-
equals
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractJType
-
toString
- Specified by:
toStringin classAbstractJType
-