Uses of Class
org.glassfish.pfl.dynamic.codegen.spi.Type
Packages that use Type
-
Uses of Type in org.glassfish.pfl.dynamic.codegen.impl
Fields in org.glassfish.pfl.dynamic.codegen.impl declared as TypeModifier and TypeFieldDescriptionprotected TypeMethodInfoBase.rtypeprotected TypeFieldInfoImpl.typeFields in org.glassfish.pfl.dynamic.codegen.impl with type parameters of type TypeMethods in org.glassfish.pfl.dynamic.codegen.impl that return TypeModifier and TypeMethodDescriptionAdd a fully-qualified type name to the imports.ExpressionFactory.NewArrExpression.ctype()ExpressionFactory.InstofExpression.itype()Lookup just the className, without package name.MethodInfoBase.returnType()ClassInfoBase.superType()ExpressionFactory.NonStaticFieldAccessExpression.targetType()ExpressionFactory.StaticFieldAccessExpression.targetType()ClassInfoBase.thisType()ExpressionFactory.ArrayIndexExpression.type()ExpressionFactory.ArrayLengthExpression.type()ExpressionFactory.BinaryOperatorExpression.type()final TypeExpressionFactory.CallExpression.type()ExpressionFactory.CastExpression.type()ExpressionFactory.ConstantExpression.type()ExpressionFactory.FieldAccessExpressionBase.type()ExpressionFactory.IfExpression.type()ExpressionFactory.InstofExpression.type()ExpressionFactory.NewArrExpression.type()ExpressionFactory.NewObjExpression.type()ExpressionFactory.SuperCallExpression.type()ExpressionFactory.SuperObjExpression.type()ExpressionFactory.ThisExpression.type()ExpressionFactory.ThisObjExpression.type()ExpressionFactory.UnaryOperatorExpression.type()ExpressionFactory.VariableImpl.type()ExpressionFactory.VoidExpression.type()ExpressionInternal.type()FieldInfoImpl.type()Methods in org.glassfish.pfl.dynamic.codegen.impl that return types with arguments of type TypeModifier and TypeMethodDescriptionTryStatement.catches()MethodInfoBase.exceptions()ClassInfoBase.impls()Methods in org.glassfish.pfl.dynamic.codegen.impl with parameters of type TypeModifier and TypeMethodDescriptionMethodGenerator.addArgument(Type type, String ident) Add a new Catch block to this try statement.BlockStatement.addDefinition(Type type, String ident, Expression value) voidstatic StringExpressionFactory.cast(Type type, Expression expr) booleanstatic ClassGeneratorImplCodeGenerator.defineClass(int modifiers, String name, Type superType, List<Type> impls) Define a ClassGeneratorImpl for a class.voidvoidByteCodeUtility.emitConstantExpression(Type type, Object value) voidByteCodeUtility.emitConversion(Type from, Type to) voidByteCodeUtility.emitExceptionTableEntry(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, Type exceptionType) voidByteCodeUtility.emitInstanceof(Type type) voidByteCodeUtility.emitInvoke(Type type, String name, Signature sig) Emit the appropriate non-static INVOKE instruction as follows: If type is an interface, emit INVOKEINTERFACE.voidByteCodeUtility.emitNewArrayCall(Type type) voidByteCodeUtility.emitNewCall(Type type) Emit the NEW, DUP sequence required at the start of a new call.voidByteCodeUtility.emitNewInvoke(Type type, Signature sig) Emit the INVOKESPECIAL instruction for calling a constructor with the given signature.voidByteCodeUtility.emitSpecialInvoke(Type type, String name, Signature sig) Emit the INVOKESPECIAL instruction for calling a method with the given signature.voidByteCodeUtility.emitStaticInvoke(Type type, String name, Signature sig) Emit a static INVOKE instruction.ExpressionFactory.fieldAccess(Type target, String fieldName) protected voidClassInfoBase.initializeClass(Type thisType, Type superType, List<Type> impls) ExpressionFactory.instof(Expression expr, Type type) ExpressionFactory.newArr(Type type, Expression size) ExpressionFactory.newArrInit(Type type, List<Expression> exprs) ExpressionFactory.newObj(Type type, List<Expression> exprs) ExpressionFactory.newObj(Type type, Signature signature, List<Expression> args) ClassGeneratorImpl.startMethod(int modifiers, Type rtype, String name, List<Type> exceptions) ExpressionFactory.staticCall(Type target, String ident, List<Expression> exprs) Shorthand form to construct invocation that looks up Signature based on the types of the expressions in exprs.ExpressionFactory.staticCall(Type target, String ident, Signature signature, List<Expression> exprs) Construct a representation of a static method invocation.voidASMByteCodeVisitor.tryStatementBeforeBlock(TryStatement arg, Type type, Variable var, BlockStatement block) voidASMSetupVisitor.tryStatementBeforeBlock(TryStatement arg, Type type, Variable var, BlockStatement block) voidNopVisitor.tryStatementBeforeBlock(TryStatement arg, Type type, Variable var, BlockStatement block) voidSourceStatementVisitor.tryStatementBeforeBlock(TryStatement arg, Type type, Variable var, BlockStatement block) voidTreeWalker.tryStatementBeforeBlock(TryStatement arg, Type type, Variable var, BlockStatement block) intMethod parameters in org.glassfish.pfl.dynamic.codegen.impl with type arguments of type TypeModifier and TypeMethodDescriptionstatic ClassGeneratorImplCodeGenerator.defineClass(int modifiers, String name, Type superType, List<Type> impls) Define a ClassGeneratorImpl for a class.static ClassGeneratorImplCodeGenerator.defineInterface(int modifiers, String name, List<Type> impls) Define a ClassGeneratorImpl for an interface.protected voidClassInfoBase.initializeClass(Type thisType, Type superType, List<Type> impls) protected voidClassInfoBase.initializeInterface(List<Type> exts) ClassGeneratorImpl.startConstructor(int modifiers, List<Type> exceptions) ClassGeneratorImpl.startMethod(int modifiers, Type rtype, String name, List<Type> exceptions) Constructors in org.glassfish.pfl.dynamic.codegen.impl with parameters of type TypeModifierConstructorDescriptionClassInfoBase(int modifiers, Type thisType) Construct a ClassInfoBase representing a class or interface.ClassInfoReflectiveImpl(Type type) FieldGenerator(ClassGeneratorImpl cinfo, int modifiers, Type type, String ident) FieldInfoImpl(ClassInfo cinfo, int modifiers, Type type, String ident) protectedMethodInfoBase(ClassInfo cinfo, int modifiers, Type rtype, String name) -
Uses of Type in org.glassfish.pfl.dynamic.codegen.spi
Methods in org.glassfish.pfl.dynamic.codegen.spi that return TypeModifier and TypeMethodDescriptionstatic Typestatic TypeType._boolean()static TypeWrapper._boolean()Return a representation of the boolean type.static TypeType._byte()static TypeType._char()static TypeReturn a codegen Type representing a class with the given name.static TypeType._Class()static TypeWrapper._Class()Return a representation of the java.lang.Class type.static TypeType._classGenerator(ClassGenerator cg) static TypeType._Cloneable()static TypeType._double()static TypeType._float()static TypeUsed to create short names for types.static TypeType._int()static TypeWrapper._int()Return a representation of the int type.static TypeType._long()static TypeType._null()static TypeType._Object()static TypeWrapper._Object()Return a representation of the java.lang.Object type.static TypeType._short()static TypeType._String()static TypeWrapper._String()Return a representation of the java.lang.String type.static TypeReturn the reference type for the given class name.static TypeWrapper._thisClass()Return the type of the current class.static TypeType._void()static TypeWrapper._void()Return a representation of the void type.Add a fully-qualified type name to the imports.Type.binaryPromotion(Type t) Return the type that is the binary promotion of this type and Type t.static TypePrimitives.getPrimitiveTypeForWrapper(Type type) static TypePrimitives.getWrapperTypeForPrimitive(Type type) Lookup just the className, without package name.Type.memberType()MethodInfo.returnType()Return the Type that is returned by this method.Signature.returnType()ClassInfo.superType()Return the Type of the supertype of this class.ClassInfo.thisType()Return the Type of the class represented by this ClassInfo.FieldInfo.type()Return the type of this Field.static TypeReturn the codegen Type that corresponds to the Java (non-generic) Type represented by cls.Variable.type()Return the type of this variable.Type.unaryPromotion()Return the type that is a unary promotion of this type.Methods in org.glassfish.pfl.dynamic.codegen.spi that return types with arguments of type TypeModifier and TypeMethodDescriptionSignature.argTypes()MethodInfo.exceptions()Return a list of all Exception types that are declared as being throwable from this method.ClassInfo.impls()Return the list of Types of interfaces implemented by this class.Methods in org.glassfish.pfl.dynamic.codegen.spi with parameters of type TypeModifier and TypeMethodDescriptionstatic ExpressionAdd an argument to the current method.static Typestatic ExpressionWrapper._call(Type target, String ident, List<Expression> args) Generate a call to a static method, using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._call(Type target, String ident, Expression... args) Generate a call to a static method, using the Java method overload resolution algorithm to determine the signature.static ExpressionGenerate a call to a static method.static ExpressionWrapper._call(Type target, String ident, Signature signature, Expression... args) Generate a call to a static method.static ExpressionWrapper._cast(Type type, Expression expr) Create an expression representing the type cast of expr to type.static ExpressionIndicate the start of a catch clause in a try statement.static voidDefine a class.static voidDefine a class.static ExpressionReturn a constant expression representing the value c.static voidWrapper._constructor(int modifiers, Type... exceptions) Begin defining a constructor in the current class.static ExpressionDefine a data member in a class.static ExpressionWrapper._define(Type type, String name, Expression expr) Indicates the introduction of a new local variable initialized to the given expression.static ExpressionReturn an expression used to access a static data member in a class given by the type.static voidWrapper._interface(int modifiers, String name, Type... impls) Define an interface.static voidBegin defining a method in the current class.static voidBegin defining a method in the current class.static ExpressionWrapper._new(Type type, List<Expression> args) Create an expression representing the construction of a new instance of the given type using the constructor with the signature determined by the Java method overload resolution algorithm and the list of expressions as arguments.static ExpressionWrapper._new(Type type, Expression... args) Create an expression representing the construction of a new instance of the given type using the constructor with the signature determined by the Java method overload resolution algorithm and the list of expressions as arguments.static ExpressionWrapper._new(Type type, Signature signature, List<Expression> args) Create an expression representing the construction of a new instance of the given type using the constructor with the given signature and the list of expressions as arguments.static ExpressionWrapper._new(Type type, Signature signature, Expression... args) Create an expression representing the construction of a new instance of the given type using the constructor with the given signature and the list of expressions as arguments.static ExpressionWrapper._new_array_init(Type type, List<Expression> args) Create an expression representing the construction of a new array with the given component type using the given expressions to initialize the array.static ExpressionWrapper._new_array_init(Type type, Expression... args) Create an expression representing the construction of a new array with the given component type using the given expressions to initialize the array.static SignatureCreate a signature that may be used for calling a method or constructor.static SignatureCreate a signature that may be used for calling a method or constructor.voidModifiableClass.addImplementedInterface(Type type) voidType.binaryPromotion(Type t) Return the type that is the binary promotion of this type and Type t.voidSignature.checkCompatibility(Type targetType, String ident, List<Expression> args) Check whether the list of expression in args is statically compatible with this Signature.voidSignature.checkConstructorCompatibility(Type targetType, List<Expression> args) Check whether the list of expression in args is statically compatible with this Signature.voidSignature.checkStaticCompatibility(Type targetType, String ident, List<Expression> args) Check whether the list of expression in args is statically compatible with this Signature.booleanstatic SignatureSignature.fromCall(Type type, String ident, List<Expression> exprs) static SignatureSignature.fromCallUsingTypes(Type type, String ident, List<Type> types) static SignatureSignature.fromConstructor(Type type, List<Expression> exprs) static SignatureSignature.fromConstructorUsingTypes(Type type, List<Type> types) static SignatureSignature.fromStaticCall(Type type, String ident, List<Expression> exprs) static SignatureSignature.fromStaticCallUsingTypes(Type type, String ident, List<Type> types) static TypePrimitives.getPrimitiveTypeForWrapper(Type type) static TypePrimitives.getWrapperTypeForPrimitive(Type type) booleanReturn true iff there is a primitive narrowing conversion from Type t to this type.booleanReturn true iff there is a primitive widening conversion from Type t to this type.booleanReturn true iff there is a reference narrowing conversion from Type t to this type.booleanReturn true iff there is a reference widening conversion from Type t to this type.booleanType.isAssignmentConvertibleFrom(Type t) Return true iff there is an assignment conversion from Type t to this type.booleanType.isCastingConvertibleFrom(Type t) Return true iff there is a casting conversion from Type t to this type.booleanReturn true iff one of the following statements is true: this.equals( t ) .static SignaturevoidModifiableClass.setSuperType(Type type) Method parameters in org.glassfish.pfl.dynamic.codegen.spi with type arguments of type TypeModifier and TypeMethodDescriptionstatic voidDefine a class.static voidWrapper._constructor(int modifiers, List<Type> exceptions) Begin defining a constructor in the current class.static voidWrapper._interface(int modifiers, String name, List<Type> impls) Define an interface.static voidBegin defining a method in the current class.static SignatureCreate a signature that may be used for calling a method or constructor.static SignatureSignature.fromCallUsingTypes(Type type, String ident, List<Type> types) static SignatureSignature.fromConstructorUsingTypes(Type type, List<Type> types) static SignatureSignature.fromStaticCallUsingTypes(Type type, String ident, List<Type> types) static Signature