Class NestedJType
java.lang.Object
org.jboss.jdeparser.AbstractJType
org.jboss.jdeparser.NestedJType
- All Implemented Interfaces:
JType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StaticRefJExprprivate final AbstractJTypeprivate final Stringprivate CachingLinkedHashMap<String, NestedJType> private StaticRefJExprprivate StaticRefJExpr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_class()An expression of the formThisType.class.Construct a new instance of this 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(NestedJType other) inthashCode()nestedType(String name) Get a nested type within this reference type.(package private) StringGet the simple name of this type.toString()This type, with the given generic type arguments.(package private) voidwriteDirect(SourceFileWriter writer)
-
Field Details
-
enclosingType
-
name
-
classExpr
-
thisExpr
-
superExpr
-
nestedTypes
-
-
Constructor Details
-
NestedJType
NestedJType(AbstractJType enclosingType, String name)
-
-
Method Details
-
qualifiedName
String qualifiedName()- Overrides:
qualifiedNamein classAbstractJType
-
_class
-
_this
-
_super
-
_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
-
_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
-
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
-
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
-
toString
- Specified by:
toStringin classAbstractJType
-
writeDirect
- Specified by:
writeDirectin classAbstractJType- Throws:
IOException
-