Uses of Class
org.glassfish.pfl.dynamic.codegen.spi.Type
Packages that use Type
Package
Description
-
Uses of Type in org.glassfish.pfl.dynamic.codegen.impl
Fields in org.glassfish.pfl.dynamic.codegen.impl declared as TypeModifier and TypeFieldDescriptionprivate Type
ExpressionFactory.NewArrExpression.ctype
private Type
ExpressionFactory.InstofExpression.itype
protected Type
MethodInfoBase.rtype
private Type
ClassInfoBase.superType
private Type
ClassInfoBase.thisType
private Type
ExpressionFactory.BinaryOperatorExpression.type
private Type
ExpressionFactory.CastExpression.type
private Type
ExpressionFactory.ConstantExpression.type
private Type
ExpressionFactory.IfExpression.type
private Type
ExpressionFactory.NewObjExpression.type
private Type
ExpressionFactory.VariableImpl.type
protected Type
FieldInfoImpl.type
Fields in org.glassfish.pfl.dynamic.codegen.impl with type parameters of type TypeModifier and TypeFieldDescriptionprivate Map
<Type, Pair<Variable, BlockStatement>> TryStatement.catches
MethodInfoBase.exceptions
ClassInfoBase.impls
ImportListImpl.imports
private static Map
<ExpressionFactory.BinaryOperator, Map<Type, Integer>> ByteCodeUtility.opInstructions
ByteCodeUtility.typeIndex
Methods 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()
(package private) abstract Type
ExpressionFactory.FieldAccessExpressionBase.targetType()
ExpressionFactory.NonStaticFieldAccessExpression.targetType()
ExpressionFactory.StaticFieldAccessExpression.targetType()
ClassInfoBase.thisType()
ExpressionFactory.ArrayIndexExpression.type()
ExpressionFactory.ArrayLengthExpression.type()
ExpressionFactory.BinaryOperatorExpression.type()
final Type
ExpressionFactory.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()
ImportListImpl.Node.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) void
static String
ExpressionFactory.cast
(Type type, Expression expr) private void
BlockStatement.checkSwitchExpressionType
(Type type) boolean
static ClassGeneratorImpl
CodeGenerator.defineClass
(int modifiers, String name, Type superType, List<Type> impls) Define a ClassGeneratorImpl for a class.void
void
ByteCodeUtility.emitConstantExpression
(Type type, Object value) void
ByteCodeUtility.emitConversion
(Type from, Type to) void
ByteCodeUtility.emitExceptionTableEntry
(org.objectweb.asm.Label start, org.objectweb.asm.Label end, org.objectweb.asm.Label handler, Type exceptionType) void
ByteCodeUtility.emitInstanceof
(Type type) void
ByteCodeUtility.emitInvoke
(Type type, String name, Signature sig) Emit the appropriate non-static INVOKE instruction as follows: If type is an interface, emit INVOKEINTERFACE.void
ByteCodeUtility.emitNewArrayCall
(Type type) void
ByteCodeUtility.emitNewCall
(Type type) Emit the NEW, DUP sequence required at the start of a new call.void
ByteCodeUtility.emitNewInvoke
(Type type, Signature sig) Emit the INVOKESPECIAL instruction for calling a constructor with the given signature.private void
ByteCodeUtility.emitReturn
(Type returnType) void
ByteCodeUtility.emitSpecialInvoke
(Type type, String name, Signature sig) Emit the INVOKESPECIAL instruction for calling a method with the given signature.void
ByteCodeUtility.emitStaticInvoke
(Type type, String name, Signature sig) Emit a static INVOKE instruction.ExpressionFactory.fieldAccess
(Type target, String fieldName) int
private static int
EmitterFactory.getVarInsnOpcode
(Type type, boolean isStore) protected void
ClassInfoBase.initializeClass
(Type thisType, Type superType, List<Type> impls) private void
ImportListImpl.insertType
(Type type) ExpressionFactory.instof
(Expression expr, Type type) private static EmitterFactory.Emitter
EmitterFactory.makeFieldInsnEmitter
(boolean isStore, boolean isStatic, Type targetType, String name, Type varType) static ImportListImpl.Node
ImportListImpl.Node.makeTypeNode
(String name, 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.void
ASMByteCodeVisitor.tryStatementBeforeBlock
(TryStatement arg, Type type, Variable var, BlockStatement block) void
ASMSetupVisitor.tryStatementBeforeBlock
(TryStatement arg, Type type, Variable var, BlockStatement block) void
NopVisitor.tryStatementBeforeBlock
(TryStatement arg, Type type, Variable var, BlockStatement block) void
SourceStatementVisitor.tryStatementBeforeBlock
(TryStatement arg, Type type, Variable var, BlockStatement block) void
TreeWalker.tryStatementBeforeBlock
(TryStatement arg, Type type, Variable var, BlockStatement block) int
private String
private String
Method parameters in org.glassfish.pfl.dynamic.codegen.impl with type arguments of type TypeModifier and TypeMethodDescriptionstatic ClassGeneratorImpl
CodeGenerator.defineClass
(int modifiers, String name, Type superType, List<Type> impls) Define a ClassGeneratorImpl for a class.static ClassGeneratorImpl
CodeGenerator.defineInterface
(int modifiers, String name, List<Type> impls) Define a ClassGeneratorImpl for an interface.protected void
ClassInfoBase.initializeClass
(Type thisType, Type superType, List<Type> impls) protected void
ClassInfoBase.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 TypeModifierConstructorDescription(package private)
BinaryOperatorExpression
(ExpressionFactory ef, Type type, Expression left, ExpressionFactory.BinaryOperator op, Expression right) (package private)
CastExpression
(ExpressionFactory ef, Type type, Expression expr) (package private)
ClassGeneratorImpl
(int modifiers, String name, Type superType, List<Type> impls) Construct a ClassGeneratorImpl representing a class.ClassInfoBase
(int modifiers, Type thisType) Construct a ClassInfoBase representing a class or interface.ClassInfoReflectiveImpl
(Type type) (package private)
ConstantExpression
(ExpressionFactory ef, Type type, Object value) FieldGenerator
(ClassGeneratorImpl cinfo, int modifiers, Type type, String ident) FieldInfoImpl
(ClassInfo cinfo, int modifiers, Type type, String ident) (package private)
InstofExpression
(ExpressionFactory ef, Expression expr, Type type) (package private)
MethodGenerator
(ClassGeneratorImpl parent, int modifiers, Type rtype, String name, List<Type> exceptions) Construct a MethodGenerator that represents a method.protected
MethodInfoBase
(ClassInfo cinfo, int modifiers, Type rtype, String name) (package private)
NewArrExpression
(ExpressionFactory ef, Type ctype, Expression size, List<Expression> exprs) (package private)
NewObjExpression
(ExpressionFactory ef, Type type, Signature signature, List<Expression> args) (package private)
StaticCallExpression
(ExpressionFactory ef, Type target, String ident, Signature signature, List<Expression> args) (package private)
StaticFieldAccessExpression
(ExpressionFactory ef, Type target, String fieldName) (package private)
VariableImpl
(ExpressionFactory ef, Type type, String ident) Constructor parameters in org.glassfish.pfl.dynamic.codegen.impl with type arguments of type TypeModifierConstructorDescription(package private)
ClassGeneratorImpl
(int modifiers, String name, List<Type> impls) Construct a ClassGeneratorImpl representing an interface.(package private)
ClassGeneratorImpl
(int modifiers, String name, Type superType, List<Type> impls) Construct a ClassGeneratorImpl representing a class.(package private)
MethodGenerator
(ClassGeneratorImpl parent, int modifiers, List<Type> exceptions) Construct a MethodGenerator that represents a constructor.(package private)
MethodGenerator
(ClassGeneratorImpl parent, int modifiers, Type rtype, String name, List<Type> exceptions) Construct a MethodGenerator that represents a method. -
Uses of Type in org.glassfish.pfl.dynamic.codegen.spi
Fields in org.glassfish.pfl.dynamic.codegen.spi declared as TypeModifier and TypeFieldDescriptionprivate Type
Type.memberType
private static final Type
Type.myBoolean
private static final Type
Type.myByte
private static final Type
Type.myChar
private static final Type
Type.myClass
private static final Type
Type.myCloneable
private static final Type
Type.myDouble
private static final Type
Type.myFloat
private static final Type
Type.myInt
private static final Type
Type.myLong
private static final Type
Type.myNull
private static final Type
Type.myObject
private static final Type
Type.myShort
private static final Type
Type.myString
private static final Type
Type.myVoid
private Type
Signature.rtype
Fields in org.glassfish.pfl.dynamic.codegen.spi with type parameters of type TypeModifier and TypeFieldDescriptionprivate static ThreadLocal
<Map<Class, Type>> Type.classMap
private static ThreadLocal
<Map<String, Type>> Type.classNameMap
Type.ptcToType
Signature.types
Methods in org.glassfish.pfl.dynamic.codegen.spi that return TypeModifier and TypeMethodDescriptionstatic Type
static Type
Type._boolean()
static Type
Wrapper._boolean()
Return a representation of the boolean type.static Type
Type._byte()
(package private) static Type
Wrapper._byte()
Return a representation of the byte type.static Type
Type._char()
(package private) static Type
Wrapper._char()
Return a representation of the char type.static Type
Return a codegen Type representing a class with the given name.static Type
Type._Class()
static Type
Wrapper._Class()
Return a representation of the java.lang.Class type.static Type
Type._classGenerator
(ClassGenerator cg) static Type
Type._Cloneable()
static Type
Type._double()
(package private) static Type
Wrapper._double()
Return a representation of the double type.static Type
Type._float()
(package private) static Type
Wrapper._float()
Return a representation of the float type.static Type
Used to create short names for types.(package private) final Type
static Type
Type._int()
static Type
Wrapper._int()
Return a representation of the int type.static Type
Type._long()
(package private) static Type
Wrapper._long()
Return a representation of the long type.static Type
Type._null()
static Type
Type._Object()
static Type
Wrapper._Object()
Return a representation of the java.lang.Object type.static Type
Type._short()
(package private) static Type
Wrapper._short()
Return a representation of the short type.static Type
Type._String()
static Type
Wrapper._String()
Return a representation of the java.lang.String type.static Type
Return the reference type for the given class name.(package private) Type
static Type
Wrapper._thisClass()
Return the type of the current class.(package private) Type
Wrapper.Environment._thisClass()
static Type
Type._void()
static Type
Wrapper._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 Type
Primitives.getPrimitiveTypeForWrapper
(Type type) static Type
Primitives.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 Type
Return 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.Signature.getExprTypes
(List<Expression> exprs) 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 Expression
Add an argument to the current method.(package private) final Expression
(package private) Expression
static Type
static Expression
Wrapper._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 Expression
Wrapper._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 Expression
Generate a call to a static method.static Expression
Wrapper._call
(Type target, String ident, Signature signature, Expression... args) Generate a call to a static method.static Expression
Wrapper._cast
(Type type, Expression expr) Create an expression representing the type cast of expr to type.static Expression
Indicate the start of a catch clause in a try statement.(package private) Expression
(package private) Expression
static void
Define a class.static void
Define a class.final void
static Expression
Return a constant expression representing the value c.static void
Wrapper._constructor
(int modifiers, Type... exceptions) Begin defining a constructor in the current class.static Expression
Define a data member in a class.(package private) FieldGenerator
(package private) final FieldGenerator
static Expression
Wrapper._define
(Type type, String name, Expression expr) Indicates the introduction of a new local variable initialized to the given expression.static Expression
Return an expression used to access a static data member in a class given by the type.static void
Wrapper._interface
(int modifiers, String name, Type... impls) Define an interface.static void
Begin defining a method in the current class.static void
Begin defining a method in the current class.(package private) void
(package private) final void
static Expression
Wrapper._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 Expression
Wrapper._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 Expression
Wrapper._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 Expression
Wrapper._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 Expression
Wrapper._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 Expression
Wrapper._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 Signature
Create a signature that may be used for calling a method or constructor.static Signature
Create a signature that may be used for calling a method or constructor.void
ModifiableClass.addImplementedInterface
(Type type) void
Type.binaryPromotion
(Type t) Return the type that is the binary promotion of this type and Type t.void
Signature.checkCompatibility
(Type targetType, String ident, List<Expression> args) Check whether the list of expression in args is statically compatible with this Signature.private void
Signature.checkCompatibility
(Type targetType, String ident, List<Expression> args, boolean isStaticMethod) void
Signature.checkConstructorCompatibility
(Type targetType, List<Expression> args) Check whether the list of expression in args is statically compatible with this Signature.void
Signature.checkStaticCompatibility
(Type targetType, String ident, List<Expression> args) Check whether the list of expression in args is statically compatible with this Signature.boolean
static Signature
Signature.fromCall
(Type type, String ident, List<Expression> exprs) static Signature
Signature.fromCallUsingTypes
(Type type, String ident, List<Type> types) static Signature
Signature.fromConstructor
(Type type, List<Expression> exprs) static Signature
Signature.fromConstructorUsingTypes
(Type type, List<Type> types) private static Signature
Signature.fromMethodCall
(Type type, String ident, List<Expression> exprs, boolean isStaticCall) private static Signature
Signature.fromMethodCallUsingTypes
(Type type, String ident, List<Type> types, boolean isStaticCall) static Signature
Signature.fromStaticCall
(Type type, String ident, List<Expression> exprs) static Signature
Signature.fromStaticCallUsingTypes
(Type type, String ident, List<Type> types) private static ClassInfo
Signature.getClassInfo
(Type type) private static Set
<MethodInfo> Signature.getMethods
(Type type, String ident, boolean staticOnly) static Type
Primitives.getPrimitiveTypeForWrapper
(Type type) static Type
Primitives.getWrapperTypeForPrimitive
(Type type) boolean
Return true iff there is a primitive narrowing conversion from Type t to this type.boolean
Return true iff there is a primitive widening conversion from Type t to this type.boolean
Return true iff there is a reference narrowing conversion from Type t to this type.boolean
Return true iff there is a reference widening conversion from Type t to this type.boolean
Type.isAssignmentConvertibleFrom
(Type t) Return true iff there is an assignment conversion from Type t to this type.boolean
Type.isCastingConvertibleFrom
(Type t) Return true iff there is a casting conversion from Type t to this type.boolean
Return true iff one of the following statements is true: this.equals( t ) .private boolean
Type.isSubclass
(Type t) static Signature
private boolean
Type.noMethodConflicts
(Type t1, Type t2) private static MethodInfo
Signature.returnCompatibleMethod
(Type type, String ident, List<Type> argTypes, Signature.CallType ctype, Set<MethodInfo> compatibleMethods) void
ModifiableClass.setSuperType
(Type type) Method parameters in org.glassfish.pfl.dynamic.codegen.spi with type arguments of type TypeModifier and TypeMethodDescriptionstatic void
Define a class.final void
static void
Wrapper._constructor
(int modifiers, List<Type> exceptions) Begin defining a constructor in the current class.(package private) void
Wrapper.ClassContext._constructor
(int modifiers, List<Type> exceptions) (package private) final void
Wrapper.Environment._constructor
(int modifiers, List<Type> exceptions) static void
Wrapper._interface
(int modifiers, String name, List<Type> impls) Define an interface.(package private) final void
Wrapper.Environment._interface
(int modifiers, String name, List<Type> impls) static void
Begin defining a method in the current class.(package private) void
(package private) final void
static Signature
Create a signature that may be used for calling a method or constructor.private void
Signature.checkArgTypeCompatibility
(List<Type> atypes) private boolean
Signature.checkArgTypeCompatibility
(List<Type> atypes, boolean throwsException) static Signature
Signature.fromCallUsingTypes
(Type type, String ident, List<Type> types) static Signature
Signature.fromConstructorUsingTypes
(Type type, List<Type> types) private static Signature
Signature.fromMethodCallUsingTypes
(Type type, String ident, List<Type> types, boolean isStaticCall) static Signature
Signature.fromStaticCallUsingTypes
(Type type, String ident, List<Type> types) private static Set
<MethodInfo> Signature.getCompatibleMethods
(Set<MethodInfo> methods, List<Type> argTypes) private static String
Signature.getTypeListString
(List<Type> types) static Signature
private static MethodInfo
Signature.returnCompatibleMethod
(Type type, String ident, List<Type> argTypes, Signature.CallType ctype, Set<MethodInfo> compatibleMethods) Constructors in org.glassfish.pfl.dynamic.codegen.spi with parameters of type TypeModifierConstructorDescriptionprivate
private
Type
(String name, String signature, int size, boolean isNumber, Type.Sort sort, int wideningNumber, Type memberType) Constructor parameters in org.glassfish.pfl.dynamic.codegen.spi with type arguments of type Type -
Uses of Type in org.glassfish.pfl.tf.timer.spi
Fields in org.glassfish.pfl.tf.timer.spi declared as TypeModifier and TypeFieldDescriptionprivate static Type
TimerPointSourceGenerator.Timer
private static Type
TimerPointSourceGenerator.TimerEventController
private static Type
TimerPointSourceGenerator.TimerFactory
private static Type
TimerPointSourceGenerator.TimerGroup
Methods in org.glassfish.pfl.tf.timer.spi with parameters of type Type