Package org.faktorips.fl.operations
Class AbstractBinaryOperation<T extends org.faktorips.codegen.CodeFragment>
java.lang.Object
org.faktorips.fl.operations.AbstractBinaryOperation<T>
- Type Parameters:
T- aCodeFragmentimplementation for a specific target language
- All Implemented Interfaces:
BinaryOperation<T>
- Direct Known Subclasses:
AbstractBinaryJavaOperation
public abstract class AbstractBinaryOperation<T extends org.faktorips.codegen.CodeFragment>
extends Object
implements BinaryOperation<T>
Abstract implementation of
BinaryOperation.-
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
ConstructorsConstructorDescriptionAbstractBinaryOperation(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.AbstractBinaryOperation(Operation operation) Creates a new unary operation for the indicatedOperation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the compiler this operation belongs to.org.faktorips.datatype.DatatypeOverridden method.Overridden method.org.faktorips.datatype.DatatypeOverridden method.voidsetCompiler(ExprCompiler<T> compiler) Sets the compiler in which the operation is used.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.faktorips.fl.BinaryOperation
generate
-
Constructor Details
-
AbstractBinaryOperation
Creates a new unary operation for the indicatedOperation. -
AbstractBinaryOperation
public AbstractBinaryOperation(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
-
setCompiler
Description copied from interface:BinaryOperationSets the compiler in which the operation is used.- Specified by:
setCompilerin interfaceBinaryOperation<T extends org.faktorips.codegen.CodeFragment>
-
getCompiler
Description copied from interface:BinaryOperationReturns the compiler this operation belongs to.- Specified by:
getCompilerin interfaceBinaryOperation<T extends org.faktorips.codegen.CodeFragment>
-
getOperator
Overridden method.- Specified by:
getOperatorin interfaceBinaryOperation<T extends org.faktorips.codegen.CodeFragment>- See Also:
-
getLhsDatatype
public org.faktorips.datatype.Datatype getLhsDatatype()Overridden method.- Specified by:
getLhsDatatypein interfaceBinaryOperation<T extends org.faktorips.codegen.CodeFragment>- See Also:
-
getRhsDatatype
public org.faktorips.datatype.Datatype getRhsDatatype()Overridden method.- Specified by:
getRhsDatatypein interfaceBinaryOperation<T extends org.faktorips.codegen.CodeFragment>- See Also:
-