Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
static MethodCaller |
castToVargsArray |
|
static MethodCaller |
invokeClosureMethod |
|
static MethodCallerMultiAdapter |
invokeMethod |
|
static MethodCallerMultiAdapter |
invokeMethodOnCurrent |
|
static MethodCallerMultiAdapter |
invokeMethodOnSuper |
|
static MethodCallerMultiAdapter |
invokeStaticMethod |
Constructor and description |
---|
InvocationWriter
(WriterController wc) |
Type | Name and description |
---|---|
void |
castNonPrimitiveToBool(ClassNode last) |
void |
castToNonPrimitiveIfNecessary(ClassNode sourceType, ClassNode targetType) This converts sourceType to a non primitive by using Groovy casting. |
void |
coerce(ClassNode from, ClassNode target) |
protected void |
finnishConstructorCall(ConstructorNode cn, String ownerDescriptor, int argsToRemove) |
protected String |
getMethodName(Expression message) |
protected void |
loadArguments(List<Expression> argumentList, Parameter[] para) |
static ArgumentListExpression |
makeArgumentList(Expression arguments) |
protected boolean |
makeCachedCall(Expression origin, ClassExpression sender, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis, boolean containsSpreadExpression) |
void |
makeCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis) |
protected void |
makeCall(Expression origin, ClassExpression sender, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis) |
protected boolean |
makeClassForNameCall(Expression origin, Expression receiver, Expression message, Expression arguments) if Class.forName(x) is recognized, make a direct method call |
protected boolean |
makeDirectCall(Expression origin, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean implicitThis, boolean containsSpreadExpression) |
void |
makeSingleArgumentCall(Expression receiver, String message, Expression arguments) |
protected void |
makeUncachedCall(Expression origin, ClassExpression sender, Expression receiver, Expression message, Expression arguments, MethodCallerMultiAdapter adapter, boolean safe, boolean spreadSafe, boolean implicitThis, boolean containsSpreadExpression) |
protected String |
prepareConstructorCall(ConstructorNode cn) |
protected boolean |
writeAICCall(ConstructorCallExpression call) |
protected boolean |
writeDirectMethodCall(MethodNode target, boolean implicitThis, Expression receiver, TupleExpression args) |
void |
writeInvokeConstructor(ConstructorCallExpression call) |
void |
writeInvokeMethod(MethodCallExpression call) |
void |
writeInvokeStaticMethod(StaticMethodCallExpression call) |
protected void |
writeNormalConstructorCall(ConstructorCallExpression call) |
void |
writeSpecialConstructorCall(ConstructorCallExpression call) |
This converts sourceType to a non primitive by using Groovy casting. sourceType might be a primitive This might be done using SBA#castToType
if Class.forName(x) is recognized, make a direct method call
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.