[Java] Class StaticTypesBinaryExpressionMultiTypeDispatcher
- org.codehaus.groovy.classgen.asm.sc.StaticTypesBinaryExpressionMultiTypeDispatcher
- All Implemented Interfaces and Traits:
- org.objectweb.asm.Opcodes
public class StaticTypesBinaryExpressionMultiTypeDispatcher extends BinaryExpressionMultiTypeDispatcher implements org.objectweb.asm.Opcodes
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.
Fields inherited from class | Fields |
---|---|
class BinaryExpressionMultiTypeDispatcher | binExpWriter, typeMap, typeMapKeyNames |
class BinaryExpressionHelper | controller |
Constructor Summary
Constructor and description |
---|
StaticTypesBinaryExpressionMultiTypeDispatcher
(WriterController wc) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected void |
assignToArray(Expression enclosing, Expression receiver, Expression subscript, Expression rhsValueLoader, boolean safe) | |
protected void |
evaluateBinaryExpressionWithAssignment(String method, BinaryExpression expression) | |
public 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
@Override protected void assignToArray(Expression enclosing, Expression receiver, Expression subscript, Expression rhsValueLoader, boolean safe)
@Override protected void evaluateBinaryExpressionWithAssignment(String method, BinaryExpression expression)
@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/3.0.7/html/gapi/org/codehaus/groovy/classgen/asm/sc/StaticTypesBinaryExpressionMultiTypeDispatcher.html