Groovy 2.2.1

org.codehaus.groovy.classgen.asm.sc
[Java] Class StaticTypesBinaryExpressionMultiTypeDispatcher

java.lang.Object
  org.codehaus.groovy.classgen.asm.BinaryExpressionHelper
      org.codehaus.groovy.classgen.asm.BinaryExpressionMultiTypeDispatcher
          org.codehaus.groovy.classgen.asm.sc.StaticTypesBinaryExpressionMultiTypeDispatcher
All Implemented Interfaces:
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


Field Summary
 
Fields inherited from class BinaryExpressionMultiTypeDispatcher
typeMap, typeMapKeyNames
 
Constructor Summary
StaticTypesBinaryExpressionMultiTypeDispatcher(WriterController wc)

 
Method Summary
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)

 
Methods inherited from class BinaryExpressionMultiTypeDispatcher
eval, getIsCaseMethod, getController, evaluateEqual, evaluatePostfixMethod, evaluatePrefixMethod, evaluateTernary, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class BinaryExpressionHelper
eval, getIsCaseMethod, getController, evaluateEqual, evaluatePostfixMethod, evaluatePrefixMethod, evaluateTernary, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

StaticTypesBinaryExpressionMultiTypeDispatcher

public StaticTypesBinaryExpressionMultiTypeDispatcher(WriterController wc)


 
Method Detail

assignToArray

protected void assignToArray(Expression parent, Expression receiver, Expression index, Expression rhsValueLoader)


evaluateEqual

@Override
public void evaluateEqual(BinaryExpression expression, boolean defineVariable)


writePostOrPrefixMethod

@Override
protected void writePostOrPrefixMethod(int op, String method, Expression expression, Expression orig)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.