Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.builder.impl
Class ArithmeticExpressionBuilder

java.lang.Object
  extended by org.jboss.errai.codegen.builder.impl.ExpressionBuilder<ArithmeticOperator>
      extended by org.jboss.errai.codegen.builder.impl.ArithmeticExpressionBuilder
All Implemented Interfaces:
ArithmeticExpression, Expression<ArithmeticOperator>, Statement

public class ArithmeticExpressionBuilder
extends ExpressionBuilder<ArithmeticOperator>
implements ArithmeticExpression

Author:
Christian Sadilek

Field Summary
 
Fields inherited from class org.jboss.errai.codegen.builder.impl.ExpressionBuilder
lhs, lhsExpr, operator, operExpr, qualifyingBrackets, rhs, rhsExpr
 
Constructor Summary
ArithmeticExpressionBuilder()
           
ArithmeticExpressionBuilder(Object rhs, ArithmeticOperator operator)
           
ArithmeticExpressionBuilder(Object lhs, Object rhs, ArithmeticOperator operator)
           
ArithmeticExpressionBuilder(Statement rhs, ArithmeticOperator operator)
           
ArithmeticExpressionBuilder(Statement lhs, Statement rhs, ArithmeticOperator operator)
           
 
Method Summary
static ArithmeticExpression create(ArithmeticOperator operator, Object rhs)
           
static ArithmeticExpression create(Object lhs, ArithmeticOperator operator, Object rhs)
           
static ArithmeticExpression create(Statement lhs)
           
 MetaClass getType()
           
 
Methods inherited from class org.jboss.errai.codegen.builder.impl.ExpressionBuilder
generate, getLhs, getLhsExpr, getOperator, getRhs, setLhs, setLhsExpr, setOperator, setRhs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.errai.codegen.Expression
getLhs, getLhsExpr, getOperator, getRhs, setLhs, setLhsExpr, setOperator, setRhs
 
Methods inherited from interface org.jboss.errai.codegen.Statement
generate
 

Constructor Detail

ArithmeticExpressionBuilder

public ArithmeticExpressionBuilder()

ArithmeticExpressionBuilder

public ArithmeticExpressionBuilder(Statement rhs,
                                   ArithmeticOperator operator)

ArithmeticExpressionBuilder

public ArithmeticExpressionBuilder(Object rhs,
                                   ArithmeticOperator operator)

ArithmeticExpressionBuilder

public ArithmeticExpressionBuilder(Statement lhs,
                                   Statement rhs,
                                   ArithmeticOperator operator)

ArithmeticExpressionBuilder

public ArithmeticExpressionBuilder(Object lhs,
                                   Object rhs,
                                   ArithmeticOperator operator)
Method Detail

create

public static ArithmeticExpression create(Statement lhs)

create

public static ArithmeticExpression create(ArithmeticOperator operator,
                                          Object rhs)

create

public static ArithmeticExpression create(Object lhs,
                                          ArithmeticOperator operator,
                                          Object rhs)

getType

public MetaClass getType()
Specified by:
getType in interface Statement

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.