|
Groovy 2.2.2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.classgen.asm.CallSiteWriter
org.codehaus.groovy.classgen.asm.sc.StaticTypesCallSiteWriter
public class StaticTypesCallSiteWriter extends CallSiteWriter
A call site writer which replaces call site caching with static calls. This means that the generated code looks more like Java code than dynamic Groovy code. Best effort is made to use JVM instructions instead of calls to helper methods.
Field Summary |
---|
Fields inherited from class CallSiteWriter | |
---|---|
CONSTRUCTOR |
Constructor Summary | |
StaticTypesCallSiteWriter(StaticTypesWriterController controller)
|
Method Summary | |
---|---|
void
|
generateCallSiteArray()
|
void
|
makeCallSite(Expression receiver, String message, Expression arguments, boolean safe, boolean implicitThis, boolean callCurrent, boolean callStatic)
|
void
|
makeCallSiteArrayInitializer()
|
void
|
makeGetPropertySite(Expression receiver, String methodName, boolean safe, boolean implicitThis)
|
void
|
makeGroovyObjectGetPropertySite(Expression receiver, String methodName, boolean safe, boolean implicitThis)
|
void
|
makeSingleArgumentCall(Expression receiver, String message, Expression arguments)
|
void
|
makeSiteEntry()
|
void
|
prepareCallSite(String message)
|
Methods inherited from class CallSiteWriter | |
---|---|
getCallSites, generateCallSiteArray, makeSiteEntry, makeGetPropertySite, makeGroovyObjectGetPropertySite, makeCallSite, prepareCallSite, makeCallSiteArrayInitializer, makeSingleArgumentCall, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public StaticTypesCallSiteWriter(StaticTypesWriterController controller)
Method Detail |
---|
@Override public void generateCallSiteArray()
@Override public void makeCallSite(Expression receiver, String message, Expression arguments, boolean safe, boolean implicitThis, boolean callCurrent, boolean callStatic)
@Override} public void makeCallSiteArrayInitializer()
@Override public void makeGetPropertySite(Expression receiver, String methodName, boolean safe, boolean implicitThis)
@Overrideif (currentCall != null && currentCall.getNodeMetaData(StaticTypesMarker.IMPLICIT_RECEIVER) != null) { public void makeGroovyObjectGetPropertySite(Expression receiver, String methodName, boolean safe, boolean implicitThis)
@Overridereturn; public void makeSingleArgumentCall(Expression receiver, String message, Expression arguments)
@Overridereturn; public void makeSiteEntry()
@Overridereturn; public void prepareCallSite(String message)
Copyright © 2003-2013 The Codehaus. All rights reserved.