jdeparser 1.0.0.Final-redhat-1

Uses of Class
org.jboss.jdeparser.JType

Packages that use JType
org.jboss.jdeparser   
 

Uses of JType in org.jboss.jdeparser
 

Subclasses of JType in org.jboss.jdeparser
 class JClass
          Represents a Java reference type, such as a class, an interface, an enum, an array type, a parameterized type.
 class JDefinedClass
          A generated Java class/interface/enum/....
 class JNullType
          Special class object that represents the type of "null".
 class JPrimitiveType
          Java built-in primitive types.
 class JTypeVar
          Type variable used to declare generics.
 

Methods in org.jboss.jdeparser that return JType
 JType JDeparser._ref(Class<?> c)
           
 JType JType.elementType()
          If this is an array, returns the component type of the array.
 JType JType.erasure()
          Returns the erasure of this type.
 JType[] JMethod.listParamTypes()
          Returns all the parameter types in an array.
 JType JMethod.listVarParamType()
          Returns the varags parameter type.
 JType JDeparser.parseType(String name)
          Obtains a type object from a type name.
 JType JMethod.type()
          Returns the return type.
 JType JVar.type()
          Return the type of this variable.
 JType JVar.type(JType newType)
          Sets the type of this variable.
 JType JPrimitiveType.unboxify()
          Deprecated. calling this method from JPrimitiveType would be meaningless, since it's always guaranteed to return this.
 JType JClass.unboxify()
           
abstract  JType JType.unboxify()
          If this class is a wrapper type for a primitive, return the primitive type.
 

Methods in org.jboss.jdeparser with parameters of type JType
static JExpression JOp._instanceof(JExpression left, JType right)
           
 JExpression JExpression._instanceof(JType right)
          Returns "[this] instanceof [right]"
 JExpression JExpressionImpl._instanceof(JType right)
           
static JInvocation JExpr._new(JType t)
           
static org.jboss.jdeparser.JCast JExpr.cast(JType type, JExpression expr)
           
 int JType.compareTo(JType o)
          Compare two JTypes by FQCN, giving sorting precedence to types that belong to packages java and javax over all others.
 JVar JBlock.decl(int mods, JType type, String name, JExpression init)
          Adds a local variable declaration to this block
 JVar JBlock.decl(JType type, String name)
          Adds a local variable declaration to this block
 JVar JBlock.decl(JType type, String name, JExpression init)
          Adds a local variable declaration to this block
 JFieldVar JDefinedClass.field(int mods, JType type, String name)
          Adds a field to the list of field members of this JDefinedClass.
 JFieldVar JDefinedClass.field(int mods, JType type, String name, JExpression init)
          Adds a field to the list of field members of this JDefinedClass.
 JForEach JBlock.forEach(JType varType, String name, JExpression collection)
          Creates an enhanced For statement based on j2se 1.5 JLS and add it to this block
 JMethod JDefinedClass.getConstructor(JType[] argTypes)
          Looks for a method that has the specified method signature and return it.
 JMethod JDefinedClass.getMethod(String name, JType[] argTypes)
          Looks for a method that has the specified method signature and return it.
 boolean JMethod.hasSignature(JType[] argTypes)
          Returns true if the method has the specified signature.
 JVar JForLoop.init(int mods, JType type, String var, JExpression e)
           
 JVar JForLoop.init(JType type, String var, JExpression e)
           
 JMethod JDefinedClass.method(int mods, JType type, String name)
          Add a method to the list of method members of this JDefinedClass instance.
 JClass JClass.narrow(JType type)
           
static JArray JExpr.newArray(JType type)
           
static JArray JExpr.newArray(JType type, int size)
          Generates new T[size].
static JArray JExpr.newArray(JType type, JExpression size)
          Generates new T[size].
 JVar JMethod.param(int mods, JType type, String name)
          Add the specified variable to the list of parameters for this method signature.
 JAnnotationArrayMember JAnnotationArrayMember.param(JType type)
           
 JVar JMethod.param(JType type, String name)
           
 JAnnotationUse JAnnotationUse.param(String name, JType type)
          Adds a member value pair to this annotation based on the type represented by the given JType
 JFormatter JFormatter.t(JType type)
           
 void JMethod.type(JType t)
          Overrides the return type.
 JType JVar.type(JType newType)
          Sets the type of this variable.
 JVar JMethod.varParam(JType type, String name)
          Add the specified variable argument to the list of parameters for this method signature.
 

Constructors in org.jboss.jdeparser with parameters of type JType
JForEach(JType vartype, String variable, JExpression collection)
           
 


jdeparser 1.0.0.Final-redhat-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.