Package org.jboss.jdeparser
Class PrimitiveJType
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJType
-
- org.jboss.jdeparser.PrimitiveJType
-
- All Implemented Interfaces:
JType
class PrimitiveJType extends AbstractJType
-
-
Field Summary
Fields Modifier and Type Field Description private ReferenceJTypeboxedprivate StaticRefJExprclassExprprivate java.lang.StringsimpleName
-
Constructor Summary
Constructors Constructor Description PrimitiveJType(java.lang.String simpleName, java.lang.String boxed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JExpr_class()An expression of the formThisType.class.JTypebox()The primitive-boxed version of this type.(package private) booleanequals(AbstractJType other)inthashCode()java.lang.StringsimpleName()Get the simple name of this type.java.lang.StringtoString()(package private) voidwriteDirect(SourceFileWriter sourceFileWriter)-
Methods inherited from class org.jboss.jdeparser.AbstractJType
_new, _new, _new, _newAnon, _newArray, _super, _this, $t, $v, array, call, call, elementType, equals, erasure, field, methodRef, methodRef, nestedType, of, qualifiedName, typeArg, typeArg, typeArg, typeArgs, unbox, wildcardExtends, wildcardSuper
-
-
-
-
Field Detail
-
simpleName
private final java.lang.String simpleName
-
boxed
private final ReferenceJType boxed
-
classExpr
private StaticRefJExpr classExpr
-
-
Method Detail
-
box
public JType box()
Description copied from interface:JTypeThe primitive-boxed version of this type.- Specified by:
boxin interfaceJType- Overrides:
boxin classAbstractJType- Returns:
- the boxed version of this type
-
writeDirect
void writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Specified by:
writeDirectin classAbstractJType- Throws:
java.io.IOException
-
_class
public JExpr _class()
Description copied from interface:JTypeAn expression of the formThisType.class.- Specified by:
_classin interfaceJType- Overrides:
_classin classAbstractJType- Returns:
- the expression
-
equals
boolean equals(AbstractJType other)
- Specified by:
equalsin classAbstractJType
-
hashCode
public int hashCode()
- Specified by:
hashCodein classAbstractJType
-
simpleName
public java.lang.String 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
-
toString
public java.lang.String toString()
- Specified by:
toStringin classAbstractJType
-
-