Uses of Class
org.codehaus.modello.plugin.java.javasource.JType
-
Uses of JType in org.codehaus.modello.plugin.java.javasource
Modifier and TypeClassDescriptionfinal class
JType sub-class for Arrays.class
A representation of the Java Source code for a Java Class.final class
JType sub-class for collections.class
JType sub-class for componentized types, such as array as collections.final class
A representation of the Java Source code for a Java Interface.final class
JType sub-class for maps.class
This class represents the basic Java "structure" for a Java source file.Modifier and TypeFieldDescriptionstatic final JType
JType.BOOLEAN
static final JType
JType.BYTE
static final JType
JType.CHAR
static final JType
JType.DOUBLE
static final JType
JType.FLOAT
static final JType
JType.INT
static final JType
JType.LONG
static final JType
JType.SHORT
Modifier and TypeMethodDescriptionfinal JType
JType.createArray()
Deprecated.removed in javasource 1.3rc1, replaced by JArrayTypefinal JType
JComponentizedType.getComponentType()
Returns the component type.JType.getComponentType()
If this JType is an array this method will returns the component type of the array, otherwise null will be returned.JMethod.getReturnType()
Returns the JType that represents the return type of the method.JMethodSignature.getReturnType()
Returns the JType that represents the return type for the method signature.JField.getType()
Returns the JType represting the type of this JFieldJParameter.getType()
Returns the parameter typeModifier and TypeMethodDescriptionvoid
Sets the type of this parameterModifierConstructorDescriptionJArrayType
(JType componentType, boolean useJava50) Creates an instance of a array type, of type 'name'.JCollectionType
(String typeName, String instanceName, JType componentType, boolean useJava50) Creates an instance of a collection type, of type 'collectionName'.JCollectionType
(String typeName, JType componentType, boolean useJava50) Creates an instance of a collection type, of type 'collectionName'.protected
JComponentizedType
(String name, JType componentType, boolean useJava50) Creates an instance of a componentized type, of type 'name'.Creates an instance of a map type, of type 'mapName'.Creates an instance of a map type, of type 'mapName'.Creates a new JMethod with the given name and returnType.Deprecated.removed in future version of javasourceJMethodSignature
(String name, JType returnType) Creates a new method with the given name and return type.JParameter
(JType type, String name) Creates a new JParameter with the given type, and name