Package org.faktorips.fl.operations
Class AbstractBinaryJavaOperation
java.lang.Object
org.faktorips.fl.operations.AbstractBinaryOperation<org.faktorips.codegen.JavaCodeFragment>
org.faktorips.fl.operations.AbstractBinaryJavaOperation
- All Implemented Interfaces:
BinaryOperation<org.faktorips.codegen.JavaCodeFragment>
- Direct Known Subclasses:
AddDecimalDecimal,AddDecimalInt,AddDecimalInteger,AddIntDecimal,AddIntegerDecimal,AddIntInt,AddMoneyMoney,AddStringString,CompareToComparableDatatype,DivideDecimalDecimal,DivideMoneyDecimal,EqualsObjectDatatype,EqualsPrimtiveType,GreaterThanDecimalDecimal,GreaterThanMoneyMoney,GreaterThanOrEqualDecimalDecimal,GreaterThanOrEqualMoneyMoney,LessThanDecimalDecimal,LessThanMoneyMoney,LessThanOrEqualDecimalDecimal,LessThanOrEqualMoneyMoney,MultiplyDecimalDecimal,MultiplyDecimalMoney,MultiplyIntegerMoney,MultiplyIntInt,MultiplyMoneyDecimal,SubtractDecimalDecimal,SubtractIntInt,SubtractMoneyMoney
public abstract class AbstractBinaryJavaOperation
extends AbstractBinaryOperation<org.faktorips.codegen.JavaCodeFragment>
Abstract implementation of
BinaryOperation for Java code
generating operations.-
Field Summary
Fields inherited from interface org.faktorips.fl.BinaryOperation
DIVIDE, EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESSER_THAN, LESSER_THAN_OR_EQUAL, MINUS, MULTIPLY, NOT_EQUAL, PLUS -
Constructor Summary
ConstructorsConstructorDescriptionAbstractBinaryJavaOperation(String operator, org.faktorips.datatype.Datatype lhs, org.faktorips.datatype.Datatype rhs) Creates a new binary operation for the indicated left hand side and right hand sidedata types.AbstractBinaryJavaOperation(Operation operation) Creates a new binary operation for the indicatedOperation. -
Method Summary
Modifier and TypeMethodDescriptionAbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment>generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> lhs, CompilationResult<org.faktorips.codegen.JavaCodeFragment> rhs) Generates the combinedCompilationResultfrom the given operands.abstract CompilationResultImplGenerates the combinedCompilationResultfrom the given operands.Methods inherited from class org.faktorips.fl.operations.AbstractBinaryOperation
getCompiler, getLhsDatatype, getOperator, getRhsDatatype, setCompiler
-
Constructor Details
-
AbstractBinaryJavaOperation
Creates a new binary operation for the indicatedOperation. -
AbstractBinaryJavaOperation
public AbstractBinaryJavaOperation(String operator, org.faktorips.datatype.Datatype lhs, org.faktorips.datatype.Datatype rhs) Creates a new binary operation for the indicated left hand side and right hand sidedata types.
-
-
Method Details
-
generate
public AbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment> generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> lhs, CompilationResult<org.faktorips.codegen.JavaCodeFragment> rhs) Description copied from interface:BinaryOperationGenerates the combinedCompilationResultfrom the given operands.- Parameters:
lhs- the left hand side operandrhs- the right hand side operand- Returns:
- the given operands combined with this operation's operator
-
generate
public abstract CompilationResultImpl generate(CompilationResultImpl lhs, CompilationResultImpl rhs) Generates the combinedCompilationResultfrom the given operands.- Parameters:
lhs- the left hand side operandrhs- the right hand side operand- Returns:
- the given operands combined with this operation's operator
-