[Java] Class StaticTypesBinaryExpressionMultiTypeDispatcher
- org.codehaus.groovy.classgen.asm.sc.StaticTypesBinaryExpressionMultiTypeDispatcher
- All Implemented Interfaces and Traits:
- org.objectweb.asm.Opcodes
public class StaticTypesBinaryExpressionMultiTypeDispatcher extends BinaryExpressionMultiTypeDispatcher
A specialized version of the multi type binary expression dispatcher which is aware of static compilation. It is able to generate optimized bytecode for some operations using JVM instructions when available.
- Authors:
- Cedric Champeau
- Jochen Theodorou
Fields inherited from class | Fields |
---|---|
class BinaryExpressionMultiTypeDispatcher | binExpWriter, typeMap, typeMapKeyNames |
Constructor Summary
Constructor and description |
---|
StaticTypesBinaryExpressionMultiTypeDispatcher
(WriterController wc) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected void |
assignToArray(Expression parent, Expression receiver, Expression index, Expression rhsValueLoader) | |
void |
evaluateEqual(BinaryExpression expression, boolean defineVariable) | |
protected void |
writePostOrPrefixMethod(int op, String method, Expression expression, Expression orig) |
Inherited Methods Summary
Constructor Detail
public StaticTypesBinaryExpressionMultiTypeDispatcher(WriterController wc)
Method Detail
protected void assignToArray(Expression parent, Expression receiver, Expression index, Expression rhsValueLoader)
@Override public void evaluateEqual(BinaryExpression expression, boolean defineVariable)
@Override protected void writePostOrPrefixMethod(int op, String method, Expression expression, Expression orig)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/classgen/asm/sc/StaticTypesBinaryExpressionMultiTypeDispatcher.html