public class InvokeDynamicWriter extends InvocationWriter
castToVargsArray, invokeClosureMethod, invokeMethod, invokeMethodOnCurrent, invokeMethodOnSuper, invokeStaticMethod
Constructor and Description |
---|
InvokeDynamicWriter(WriterController wc) |
Modifier and Type | Method and Description |
---|---|
void |
castNonPrimitiveToBool(ClassNode sourceType) |
void |
castToNonPrimitiveIfNecessary(ClassNode sourceType,
ClassNode targetType)
This converts sourceType to a non primitive by using Groovy casting.
|
void |
coerce(ClassNode from,
ClassNode target) |
protected boolean |
makeCachedCall(Expression origin,
ClassExpression sender,
Expression receiver,
Expression message,
Expression arguments,
MethodCallerMultiAdapter adapter,
boolean safe,
boolean spreadSafe,
boolean implicitThis,
boolean containsSpreadExpression) |
void |
makeSingleArgumentCall(Expression receiver,
String message,
Expression arguments) |
protected void |
writeGetProperty(Expression receiver,
String propertyName,
boolean safe,
boolean implicitThis,
boolean groovyObject) |
protected void |
writeNormalConstructorCall(ConstructorCallExpression call) |
finnishConstructorCall, getMethodName, loadArguments, makeArgumentList, makeCall, makeCall, makeClassForNameCall, makeDirectCall, makeUncachedCall, prepareConstructorCall, writeAICCall, writeDirectMethodCall, writeInvokeConstructor, writeInvokeMethod, writeInvokeStaticMethod, writeSpecialConstructorCall
public InvokeDynamicWriter(WriterController wc)
protected boolean makeCachedCall(Expression origin, ClassExpression sender, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis, boolean containsSpreadExpression)
makeCachedCall
in class InvocationWriter
public void makeSingleArgumentCall(Expression receiver, String message, Expression arguments)
makeSingleArgumentCall
in class InvocationWriter
protected void writeGetProperty(Expression receiver, String propertyName, boolean safe, boolean implicitThis, boolean groovyObject)
protected void writeNormalConstructorCall(ConstructorCallExpression call)
writeNormalConstructorCall
in class InvocationWriter
public void coerce(ClassNode from, ClassNode target)
coerce
in class InvocationWriter
public void castToNonPrimitiveIfNecessary(ClassNode sourceType, ClassNode targetType)
InvocationWriter
castToNonPrimitiveIfNecessary
in class InvocationWriter
public void castNonPrimitiveToBool(ClassNode sourceType)
castNonPrimitiveToBool
in class InvocationWriter