| java.lang.Object com.sun.codemodel.JType com.sun.codemodel.JPrimitiveType
JPrimitiveType | final public class JPrimitiveType extends JType (Code) | | Java built-in primitive types.
Instances of this class can be obtained as constants of
JCodeModel ,
such as
JCodeModel.BOOLEAN .
|
boxify | public JClass boxify()(Code) | | Obtains the wrapper class for this primitive type.
For example, this method returns a reference to java.lang.Integer
if this object represents int.
|
isPrimitive | public boolean isPrimitive()(Code) | | |
unwrap | public JExpression unwrap(JExpression exp)(Code) | | Do the opposite of the wrap method.
REVISIT: it's not clear how this method works for VOID.
|
wrap | public JExpression wrap(JExpression exp)(Code) | | Wraps an expression of this type to the corresponding wrapper class.
For example, if this class represents "float", this method will return
the expression new Float(x) for the paramter x.
REVISIT: it's not clear how this method works for VOID.
|
|
|