public class InvocationWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static MethodCaller |
invokeClosureMethod |
protected static MethodCallerMultiAdapter |
invokeMethod |
protected static MethodCallerMultiAdapter |
invokeMethodOnCurrent |
protected static MethodCallerMultiAdapter |
invokeMethodOnSuper |
protected static MethodCallerMultiAdapter |
invokeStaticMethod |
Constructor and Description |
---|
InvocationWriter(WriterController wc) |
Modifier and Type | Method and Description |
---|---|
protected void |
finnishConstructorCall(ConstructorNode cn,
java.lang.String ownerDescriptor,
int argsToRemove) |
protected java.lang.String |
getMethodName(Expression message) |
protected void |
loadArguments(java.util.List<Expression> argumentList,
Parameter[] para) |
static ArgumentListExpression |
makeArgumentList(Expression arguments) |
void |
makeCall(Expression origin,
Expression receiver,
Expression message,
Expression arguments,
MethodCallerMultiAdapter adapter,
boolean safe,
boolean spreadSafe,
boolean implicitThis) |
void |
makeSingleArgumentCall(Expression receiver,
java.lang.String message,
Expression arguments) |
protected java.lang.String |
prepareConstructorCall(ConstructorNode cn) |
protected boolean |
writeDirectMethodCall(MethodNode target,
boolean implicitThis,
Expression receiver,
TupleExpression args) |
void |
writeInvokeConstructor(ConstructorCallExpression call) |
void |
writeInvokeMethod(MethodCallExpression call) |
void |
writeInvokeStaticMethod(StaticMethodCallExpression call) |
protected static final MethodCallerMultiAdapter invokeMethodOnCurrent
protected static final MethodCallerMultiAdapter invokeMethodOnSuper
protected static final MethodCallerMultiAdapter invokeMethod
protected static final MethodCallerMultiAdapter invokeStaticMethod
protected static final MethodCaller invokeClosureMethod
public InvocationWriter(WriterController wc)
public void makeCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis)
protected boolean writeDirectMethodCall(MethodNode target, boolean implicitThis, Expression receiver, TupleExpression args)
protected void loadArguments(java.util.List<Expression> argumentList, Parameter[] para)
public static ArgumentListExpression makeArgumentList(Expression arguments)
protected java.lang.String getMethodName(Expression message)
public void writeInvokeMethod(MethodCallExpression call)
public void writeInvokeStaticMethod(StaticMethodCallExpression call)
protected java.lang.String prepareConstructorCall(ConstructorNode cn)
protected void finnishConstructorCall(ConstructorNode cn, java.lang.String ownerDescriptor, int argsToRemove)
public void writeInvokeConstructor(ConstructorCallExpression call)
public void makeSingleArgumentCall(Expression receiver, java.lang.String message, Expression arguments)