Uses of Interface
org.glassfish.pfl.dynamic.codegen.spi.Expression
Packages that use Expression
-
Uses of Expression in org.glassfish.pfl.dynamic.codegen.impl
Subinterfaces of Expression in org.glassfish.pfl.dynamic.codegen.implClasses in org.glassfish.pfl.dynamic.codegen.impl that implement ExpressionModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic classRepresentation of any sort of method call other than a constructor invocation.static final classstatic final classClass that represents a constant value of any primitive type, a String, or a Class.static classstatic classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classClass used to represent the current object ("this" in java).static final classstatic final classRepresentation of the application of a UnaryOperator to an Expression.static final classstatic final classClass that represents a void expression.Methods in org.glassfish.pfl.dynamic.codegen.impl that return ExpressionModifier and TypeMethodDescriptionBlockStatement.addDefinition(Type type, String ident, Expression value) ExpressionFactory.arrayIndex(Expression expr, Expression index) ExpressionFactory.arrayLength(Expression expr) ExpressionFactory.binaryOperator(Expression left, ExpressionFactory.BinaryOperator op, Expression right) ExpressionFactory.call(Expression 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.call(Expression target, String ident, Signature signature, List<Expression> exprs) Construct a representation of a non-static method invocation.ExpressionFactory.cast(Type type, Expression expr) ExpressionFactory.IfExpression.condition()IfStatement.condition()WhileStatement.condition()abstract ExpressionExpressionFactory.BinaryOperator.create(ExpressionFactory ef, Expression left, Expression right) DefinitionStatement.expr()ExpressionFactory.ArrayIndexExpression.expr()ExpressionFactory.ArrayLengthExpression.expr()ExpressionFactory.CastExpression.expr()ExpressionFactory.InstofExpression.expr()ExpressionFactory.UnaryOperatorExpression.expr()ExpressionFactory.IfExpression.falsePart()ExpressionFactory.fieldAccess(Expression target, String fieldName) ExpressionFactory.fieldAccess(Type target, String fieldName) FieldGenerator.getExpression()ExpressionFactory.ifExpression(Expression condition, Expression truePart, Expression falsePart) ExpressionFactory.ArrayIndexExpression.index()ExpressionFactory.instof(Expression expr, Type type) ExpressionFactory.BinaryOperatorExpression.left()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) ExpressionFactory.BinaryOperatorExpression.right()ExpressionFactory.NewArrExpression.size()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.ExpressionFactory.superCall(String ident, List<Expression> exprs) ExpressionFactory.superCall(String ident, Signature signature, List<Expression> exprs) ExpressionFactory.superObj(List<Expression> exprs) Call to superclass constructor.ExpressionFactory.superObj(Signature signature, List<Expression> exprs) Call to superclass constructor.ExpressionFactory.thisObj(List<Expression> exprs) Call to another constructor.ExpressionFactory.thisObj(Signature signature, List<Expression> exprs) Call to another constructor.ExpressionFactory.IfExpression.truePart()ExpressionFactory.unaryOp(ExpressionFactory.UnaryOperator op, Expression expr) Methods in org.glassfish.pfl.dynamic.codegen.impl that return types with arguments of type ExpressionModifier and TypeMethodDescriptionfinal List<Expression> ExpressionFactory.CallExpression.args()final List<Expression> ExpressionFactory.NewObjExpression.args()ExpressionFactory.NewArrExpression.exprs()ExpressionFactory.SuperCallExpression.exprs()ExpressionFactory.SuperObjExpression.exprs()ExpressionFactory.ThisObjExpression.exprs()final IdentityHashMap<Expression, Boolean> ExpressionFactory.unusedExpressions()Methods in org.glassfish.pfl.dynamic.codegen.impl with parameters of type ExpressionModifier and TypeMethodDescriptionvoidBlockStatement.addAssign(Expression left, Expression right) BlockStatement.addDefinition(Type type, String ident, Expression value) voidBlockStatement.addExpression(Expression expr) BlockStatement.addIf(Expression cond) voidBlockStatement.addReturn(Expression expr) Add a return with an expression to this BlockStatement.BlockStatement.addSwitch(Expression value) voidBlockStatement.addThrow(Expression expr) BlockStatement.addWhile(Expression expr) ExpressionFactory.arrayIndex(Expression expr, Expression index) ExpressionFactory.arrayLength(Expression expr) ExpressionFactory.binaryOperator(Expression left, ExpressionFactory.BinaryOperator op, Expression right) ExpressionFactory.call(Expression 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.call(Expression target, String ident, Signature signature, List<Expression> exprs) Construct a representation of a non-static method invocation.ExpressionFactory.cast(Type type, Expression expr) abstract voidExpressionFactory.UnaryOperator.checkType(Expression arg) abstract ExpressionExpressionFactory.BinaryOperator.create(ExpressionFactory ef, Expression left, Expression right) ExpressionFactory.fieldAccess(Expression target, String fieldName) ExpressionFactory.ifExpression(Expression condition, Expression truePart, Expression falsePart) ExpressionFactory.instof(Expression expr, Type type) ExpressionFactory.newArr(Type type, Expression size) ExpressionFactory.unaryOp(ExpressionFactory.UnaryOperator op, Expression expr) Method parameters in org.glassfish.pfl.dynamic.codegen.impl with type arguments of type ExpressionModifier and TypeMethodDescriptionExpressionFactory.call(Expression 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.call(Expression target, String ident, Signature signature, List<Expression> exprs) Construct a representation of a non-static method invocation.ExpressionFactory.newArrInit(Type type, List<Expression> exprs) ExpressionFactory.newObj(Type type, List<Expression> exprs) ExpressionFactory.newObj(Type type, Signature signature, List<Expression> args) 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.ExpressionFactory.superCall(String ident, List<Expression> exprs) ExpressionFactory.superCall(String ident, Signature signature, List<Expression> exprs) ExpressionFactory.superObj(List<Expression> exprs) Call to superclass constructor.ExpressionFactory.superObj(Signature signature, List<Expression> exprs) Call to superclass constructor.ExpressionFactory.thisObj(List<Expression> exprs) Call to another constructor.ExpressionFactory.thisObj(Signature signature, List<Expression> exprs) Call to another constructor. -
Uses of Expression in org.glassfish.pfl.dynamic.codegen.spi
Subinterfaces of Expression in org.glassfish.pfl.dynamic.codegen.spiMethods in org.glassfish.pfl.dynamic.codegen.spi that return ExpressionModifier and TypeMethodDescriptionstatic ExpressionAdd an argument to the current method.static ExpressionWrapper._call(Expression target, String ident, List<Expression> args) Generate a call to an instance method, using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._call(Expression target, String ident, Expression... args) Generate a call to an instance method, using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._call(Expression target, String ident, Signature signature, List<Expression> args) Generate a call to an instance method.static ExpressionWrapper._call(Expression target, String ident, Signature signature, Expression... args) Generate a call to an instance method.static 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 ExpressionWrapper._const(boolean c) Return a constant expression representing the value c.static ExpressionWrapper._const(byte c) Return a constant expression representing the value c.static ExpressionWrapper._const(char c) Return a constant expression representing the value c.static ExpressionWrapper._const(double c) Return a constant expression representing the value c.static ExpressionWrapper._const(float c) Return a constant expression representing the value c.static ExpressionWrapper._const(int c) Return a constant expression representing the value c.static ExpressionWrapper._const(long c) Return a constant expression representing the value c.static ExpressionWrapper._const(short c) Return a constant expression representing the value c.static ExpressionReturn a constant expression representing the value c.static ExpressionReturn a constant expression representing the value c.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 ExpressionWrapper._field(Expression expr, String fieldName) Return an expression used to access a field in an object given by expr.static ExpressionReturn an expression used to access a static data member in a class given by the type.static ExpressionWrapper._index(Expression expr, Expression index) Return an expression used to access an element in an array given by expr.static ExpressionWrapper._ne(Expression left, Expression right) Create an expression representing the application of the != operator to the left and right expressions in the form (left op right).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 ExpressionWrapper._null()Return the null expression.static ExpressionWrapper._super(String ident, List<Expression> exprs) Generate a call to an instance method in the current super class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(String ident, Expression... exprs) Generate a call to an instance method in the current super class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(String ident, Signature signature, List<Expression> exprs) Generate a call to an instance method in the current super class.static ExpressionWrapper._super(String ident, Signature signature, Expression... exprs) Generate a call to an instance method in the current super class.static ExpressionWrapper._super(List<Expression> exprs) Invoke a superclass constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(Expression... exprs) Invoke a superclass constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(Signature signature, List<Expression> exprs) Invoke a superclass constructor as the first statement in a constructor for a class.static ExpressionWrapper._super(Signature signature, Expression... exprs) Invoke a superclass constructor as the first statement in a constructor for a class.static ExpressionWrapper._this()Return an expression representing "this".static ExpressionWrapper._this(List<Expression> exprs) Invoke another constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._this(Expression... exprs) Invoke another constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._this(Signature signature, List<Expression> exprs) Invoke another constructor as the first statement in a constructor for a class.static ExpressionWrapper._this(Signature signature, Expression... exprs) Invoke another constructor as the first statement in a constructor for a class.static ExpressionConstruct the expression that refers to the variable named name.static ExpressionPrimitives.unwrap(Expression expr) static ExpressionPrimitives.wrap(Expression expr) Methods in org.glassfish.pfl.dynamic.codegen.spi with parameters of type ExpressionModifier and TypeMethodDescriptionstatic voidWrapper._assign(Expression var, Expression expr) Indicates an assignment statement of the form var = expr.static ExpressionWrapper._call(Expression target, String ident, List<Expression> args) Generate a call to an instance method, using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._call(Expression target, String ident, Expression... args) Generate a call to an instance method, using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._call(Expression target, String ident, Signature signature, List<Expression> args) Generate a call to an instance method.static ExpressionWrapper._call(Expression target, String ident, Signature signature, Expression... args) Generate a call to an instance method.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 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 ExpressionWrapper._define(Type type, String name, Expression expr) Indicates the introduction of a new local variable initialized to the given expression.static voidWrapper._expr(Expression expr) Indicate that expr should be executed as a statement for its side effects.static ExpressionWrapper._field(Expression expr, String fieldName) Return an expression used to access a field in an object given by expr.static voidWrapper._if(Expression expr) Indicate the start of an if statement with the given expression as the condition.static ExpressionWrapper._index(Expression expr, Expression index) Return an expression used to access an element in an array given by expr.static ExpressionWrapper._ne(Expression left, Expression right) Create an expression representing the application of the != operator to the left and right expressions in the form (left op right).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, 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, 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 voidWrapper._return(Expression expr) Indicates the end of execution in a method with a return of the value of the expression.static ExpressionWrapper._super(String ident, Expression... exprs) Generate a call to an instance method in the current super class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(String ident, Signature signature, Expression... exprs) Generate a call to an instance method in the current super class.static ExpressionWrapper._super(Expression... exprs) Invoke a superclass constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(Signature signature, Expression... exprs) Invoke a superclass constructor as the first statement in a constructor for a class.static ExpressionWrapper._this(Expression... exprs) Invoke another constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._this(Signature signature, Expression... exprs) Invoke another constructor as the first statement in a constructor for a class.static voidWrapper._throw(Expression expr) Indicates a throw statement that throws the given expression.static ExpressionPrimitives.unwrap(Expression expr) static ExpressionPrimitives.wrap(Expression expr) Method parameters in org.glassfish.pfl.dynamic.codegen.spi with type arguments of type ExpressionModifier and TypeMethodDescriptionstatic ExpressionWrapper._call(Expression target, String ident, List<Expression> args) Generate a call to an instance method, using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._call(Expression target, String ident, Signature signature, List<Expression> args) Generate a call to an instance method.static 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 ExpressionGenerate a call to a static method.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, 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_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._super(String ident, List<Expression> exprs) Generate a call to an instance method in the current super class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(String ident, Signature signature, List<Expression> exprs) Generate a call to an instance method in the current super class.static ExpressionWrapper._super(List<Expression> exprs) Invoke a superclass constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._super(Signature signature, List<Expression> exprs) Invoke a superclass constructor as the first statement in a constructor for a class.static ExpressionWrapper._this(List<Expression> exprs) Invoke another constructor as the first statement in a constructor for a class using the Java method overload resolution algorithm to determine the signature.static ExpressionWrapper._this(Signature signature, List<Expression> exprs) Invoke another constructor as the first statement in a constructor for a class.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.static SignatureSignature.fromCall(Type type, String ident, List<Expression> exprs) static SignatureSignature.fromConstructor(Type type, List<Expression> exprs) static SignatureSignature.fromStaticCall(Type type, String ident, List<Expression> exprs)