Package org.faktorips.fl
Interface BinaryOperation<T extends org.faktorips.codegen.CodeFragment>
- Type Parameters:
T- aCodeFragmentimplementation for a specific target language
- All Known Implementing Classes:
AbstractBinaryJavaOperation,AbstractBinaryOperation,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,NotEqualsObjectDatatype,SubtractDecimalDecimal,SubtractIntInt,SubtractMoneyMoney
public interface BinaryOperation<T extends org.faktorips.codegen.CodeFragment>
An operation combining two operands with one operator.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongenerate(CompilationResult<T> lhs, CompilationResult<T> rhs) Generates the combinedCompilationResultfrom the given operands.Returns the compiler this operation belongs to.org.faktorips.datatype.DatatypeReturns theDatatypeof the left hand side operand.Returns the operator.org.faktorips.datatype.DatatypeReturns theDatatypeof the right hand side operand.voidsetCompiler(ExprCompiler<T> compiler) Sets the compiler in which the operation is used.
-
Field Details
-
PLUS
- See Also:
-
MINUS
- See Also:
-
MULTIPLY
- See Also:
-
DIVIDE
- See Also:
-
GREATER_THAN
- See Also:
-
GREATER_THAN_OR_EQUAL
- See Also:
-
LESSER_THAN
- See Also:
-
LESSER_THAN_OR_EQUAL
- See Also:
-
EQUAL
- See Also:
-
NOT_EQUAL
- See Also:
-
-
Method Details
-
setCompiler
Sets the compiler in which the operation is used. -
getCompiler
ExprCompiler<T> getCompiler()Returns the compiler this operation belongs to. -
getOperator
String getOperator()Returns the operator. -
getLhsDatatype
org.faktorips.datatype.Datatype getLhsDatatype()Returns theDatatypeof the left hand side operand. -
getRhsDatatype
org.faktorips.datatype.Datatype getRhsDatatype()Returns theDatatypeof the right hand side operand. -
generate
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
-