Package org.faktorips.fl.operations
Class AbstractUnaryJavaOperation
java.lang.Object
org.faktorips.fl.operations.AbstractUnaryOperation<org.faktorips.codegen.JavaCodeFragment>
org.faktorips.fl.operations.AbstractUnaryJavaOperation
- All Implemented Interfaces:
UnaryOperation<org.faktorips.codegen.JavaCodeFragment>
- Direct Known Subclasses:
MinusDecimal,MinusInteger,MinusMoney,MinusPrimitiveInt,ParenthesisDecimal,ParenthesisInt,ParenthesisMoney,ParenthesisString,PlusDecimal,PlusInteger,PlusMoney,PlusPrimitiveInt
public abstract class AbstractUnaryJavaOperation
extends AbstractUnaryOperation<org.faktorips.codegen.JavaCodeFragment>
Abstract implementation of
UnaryOperation for Java code
generating operations.-
Field Summary
Fields inherited from interface org.faktorips.fl.UnaryOperation
NOT -
Constructor Summary
ConstructorsConstructorDescriptionAbstractUnaryJavaOperation(org.faktorips.datatype.Datatype datatype, String operator) Creates a new unary operation for the indicated operator anddata type.AbstractUnaryJavaOperation(Operation operation) Creates a new unary operation for the indicatedOperation. -
Method Summary
Modifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> arg) Generates theCompilationResultfor the given operand.abstract CompilationResultImplGenerates theCompilationResultfor the given operand.Methods inherited from class org.faktorips.fl.operations.AbstractUnaryOperation
getDatatype, getOperator
-
Constructor Details
-
AbstractUnaryJavaOperation
Creates a new unary operation for the indicatedOperation. -
AbstractUnaryJavaOperation
Creates a new unary operation for the indicated operator anddata type.
-
-
Method Details
-
generate
public CompilationResult<org.faktorips.codegen.JavaCodeFragment> generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> arg) Description copied from interface:UnaryOperationGenerates theCompilationResultfor the given operand.- Parameters:
arg- the operand- Returns:
- the given operand combined with this operation's operator
-
generate
Generates theCompilationResultfor the given operand.- Parameters:
arg- the operand- Returns:
- the given operand combined with this operation's operator
-