Class StaticInvocationWriter
java.lang.Object
org.codehaus.groovy.classgen.asm.InvocationWriter
org.codehaus.groovy.classgen.asm.sc.StaticInvocationWriter
public class StaticInvocationWriter extends InvocationWriter
-
Field Summary
Fields inherited from class org.codehaus.groovy.classgen.asm.InvocationWriter
castToVargsArray, controller, invokeClosureMethod, invokeMethod, invokeMethodOnCurrent, invokeMethodOnSuper, invokeStaticMethod -
Constructor Summary
Constructors Constructor Description StaticInvocationWriter(WriterController wc) -
Method Summary
Modifier and Type Method Description MethodCallExpressiongetCurrentCall()protected static booleanisPrivateBridgeMethodsCallAllowed(ClassNode receiver, ClassNode caller)protected voidloadArguments(java.util.List<Expression> argumentList, Parameter[] parameters)protected booleanmakeCachedCall(Expression origin, ClassExpression sender, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis, boolean containsSpreadExpression)voidmakeCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis)protected booleanmakeDirectCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean implicitThis, boolean containsSpreadExpression)protected booleantryBridgeMethod(MethodNode target, Expression receiver, boolean implicitThis, TupleExpression args)Deprecated.protected booleantryBridgeMethod(MethodNode target, Expression receiver, boolean implicitThis, TupleExpression args, ClassNode thisClass)Attempts to make a direct method call on a bridge method, if it exists.protected booleanwriteDirectMethodCall(MethodNode target, boolean implicitThis, Expression receiver, TupleExpression args)voidwriteInvokeConstructor(ConstructorCallExpression call)voidwriteInvokeMethod(MethodCallExpression call)voidwriteSpecialConstructorCall(ConstructorCallExpression call)Methods inherited from class org.codehaus.groovy.classgen.asm.InvocationWriter
castNonPrimitiveToBool, castToNonPrimitiveIfNecessary, coerce, finnishConstructorCall, getMethodName, makeArgumentList, makeCall, makeClassForNameCall, makeSingleArgumentCall, makeSingleArgumentCall, makeUncachedCall, prepareConstructorCall, writeAICCall, writeInvokeStaticMethod, writeNormalConstructorCallMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StaticInvocationWriter
-
-
Method Details
-
getCurrentCall
-
makeDirectCall
protected boolean makeDirectCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean implicitThis, boolean containsSpreadExpression)- Overrides:
makeDirectCallin classInvocationWriter
-
writeInvokeMethod
- Overrides:
writeInvokeMethodin classInvocationWriter
-
writeInvokeConstructor
- Overrides:
writeInvokeConstructorin classInvocationWriter
-
writeSpecialConstructorCall
- Overrides:
writeSpecialConstructorCallin classInvocationWriter
-
tryBridgeMethod
@Deprecated protected boolean tryBridgeMethod(MethodNode target, Expression receiver, boolean implicitThis, TupleExpression args)Deprecated.Attempts to make a direct method call on a bridge method, if it exists. -
tryBridgeMethod
protected boolean tryBridgeMethod(MethodNode target, Expression receiver, boolean implicitThis, TupleExpression args, ClassNode thisClass)Attempts to make a direct method call on a bridge method, if it exists. -
writeDirectMethodCall
protected boolean writeDirectMethodCall(MethodNode target, boolean implicitThis, Expression receiver, TupleExpression args)- Overrides:
writeDirectMethodCallin classInvocationWriter
-
isPrivateBridgeMethodsCallAllowed
-
loadArguments
- Overrides:
loadArgumentsin classInvocationWriter
-
makeCall
public void makeCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis)- Overrides:
makeCallin classInvocationWriter
-
makeCachedCall
protected boolean makeCachedCall(Expression origin, ClassExpression sender, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis, boolean containsSpreadExpression)- Overrides:
makeCachedCallin classInvocationWriter
-