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 ReferenceJType
boxed
private StaticRefJExpr
classExpr
private java.lang.String
simpleName
-
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
.JType
box()
The primitive-boxed version of this type.(package private) boolean
equals(AbstractJType other)
int
hashCode()
java.lang.String
simpleName()
Get the simple name of this type.java.lang.String
toString()
(package private) void
writeDirect(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:JType
The primitive-boxed version of this type.- Specified by:
box
in interfaceJType
- Overrides:
box
in classAbstractJType
- Returns:
- the boxed version of this type
-
writeDirect
void writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
- Specified by:
writeDirect
in classAbstractJType
- Throws:
java.io.IOException
-
_class
public JExpr _class()
Description copied from interface:JType
An expression of the formThisType.class
.- Specified by:
_class
in interfaceJType
- Overrides:
_class
in classAbstractJType
- Returns:
- the expression
-
equals
boolean equals(AbstractJType other)
- Specified by:
equals
in classAbstractJType
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classAbstractJType
-
simpleName
public java.lang.String simpleName()
Description copied from interface:JType
Get the simple name of this type.- Specified by:
simpleName
in interfaceJType
- Specified by:
simpleName
in classAbstractJType
- Returns:
- the type's simple name
-
toString
public java.lang.String toString()
- Specified by:
toString
in classAbstractJType
-
-