Package | Description |
---|---|
org.glassfish.pfl.dynamic.codegen.impl | |
org.glassfish.pfl.dynamic.codegen.spi |
Modifier and Type | Method and Description |
---|---|
Signature |
MethodInfoBase.signature() |
Signature |
ExpressionFactory.CallExpression.signature() |
Signature |
ExpressionFactory.NewObjExpression.signature() |
Signature |
ExpressionFactory.SuperCallExpression.signature() |
Signature |
ExpressionFactory.SuperObjExpression.signature() |
Signature |
ExpressionFactory.ThisObjExpression.signature() |
Modifier and Type | Method and Description |
---|---|
Expression |
ExpressionFactory.call(Expression target,
String ident,
Signature signature,
List<Expression> exprs)
Construct a representation of a non-static method invocation.
|
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.emitNewInvoke(Type type,
Signature sig)
Emit the INVOKESPECIAL instruction for calling a constructor
with the given signature.
|
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.
|
MethodInfo |
ClassInfoBase.findConstructorInfo(Signature sig) |
MethodInfo |
ClassInfoBase.findMethodInfo(String name,
Signature sig) |
Expression |
ExpressionFactory.newObj(Type type,
Signature signature,
List<Expression> args) |
Expression |
ExpressionFactory.staticCall(Type target,
String ident,
Signature signature,
List<Expression> exprs)
Construct a representation of a static method invocation.
|
Expression |
ExpressionFactory.superCall(String ident,
Signature signature,
List<Expression> exprs) |
Expression |
ExpressionFactory.superObj(Signature signature,
List<Expression> exprs)
Call to superclass constructor.
|
Expression |
ExpressionFactory.thisObj(Signature signature,
List<Expression> exprs)
Call to another constructor.
|
Modifier and Type | Method and Description |
---|---|
static Signature |
Wrapper._s(Type rtype,
List<Type> types)
Create a signature that may be used for calling a method or
constructor.
|
static Signature |
Wrapper._s(Type rtype,
Type... types)
Create a signature that may be used for calling a method or
constructor.
|
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) |
static Signature |
Signature.fromStaticCall(Type type,
String ident,
List<Expression> exprs) |
static Signature |
Signature.fromStaticCallUsingTypes(Type type,
String ident,
List<Type> types) |
static Signature |
Signature.make(Type rtype,
List<Type> types) |
Signature |
MethodInfo.signature()
Return the signature of this method.
|
Modifier and Type | Method and Description |
---|---|
static Expression |
Wrapper._call(Expression target,
String ident,
Signature signature,
Expression... args)
Generate a call to an instance method.
|
static Expression |
Wrapper._call(Expression target,
String ident,
Signature signature,
List<Expression> args)
Generate a call to an instance method.
|
static Expression |
Wrapper._call(Type target,
String ident,
Signature signature,
Expression... args)
Generate a call to a static method.
|
static Expression |
Wrapper._call(Type target,
String ident,
Signature signature,
List<Expression> args)
Generate a call to a static method.
|
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(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._super(Signature signature,
Expression... exprs)
Invoke a superclass constructor as the first statement
in a constructor for a class.
|
static Expression |
Wrapper._super(Signature signature,
List<Expression> exprs)
Invoke a superclass constructor as the first statement
in a constructor for a class.
|
static Expression |
Wrapper._super(String ident,
Signature signature,
Expression... exprs)
Generate a call to an instance method in the current super
class.
|
static Expression |
Wrapper._super(String ident,
Signature signature,
List<Expression> exprs)
Generate a call to an instance method in the current super
class.
|
static Expression |
Wrapper._this(Signature signature,
Expression... exprs)
Invoke another constructor as the first statement
in a constructor for a class.
|
static Expression |
Wrapper._this(Signature signature,
List<Expression> exprs)
Invoke another constructor as the first statement
in a constructor for a class.
|
MethodInfo |
ClassInfo.findConstructorInfo(Signature sig)
Find the MethodInfo (if any) for a Constructor with the given
Signature in this ClassInfo.
|
MethodInfo |
ClassInfo.findMethodInfo(String name,
Signature sig)
Find the method (if any) with the given name and Signature
in this ClassInfo, or in any superType of this ClassInfo.
|
Copyright © 2017 Oracle. All rights reserved.