Uses of Interface
org.faktorips.fl.CompilationResult
Packages that use CompilationResult
Package
Description
The package and it's sub-packages contain a compiler that compiles an expression with an Excel
like syntax into Java sourcecode.
-
Uses of CompilationResult in org.faktorips.fl
Classes in org.faktorips.fl that implement CompilationResultModifier and TypeClassDescriptionclassAbstractCompilationResult<T extends org.faktorips.codegen.CodeFragment>Basic implementation of the CompilationResult interface, independent of compilation target language.classImplementation of the CompilationResult interface forJava code.Methods in org.faktorips.fl that return CompilationResultModifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>DefaultIdentifierResolver.compile(String identifier, ExprCompiler<org.faktorips.codegen.JavaCodeFragment> exprCompiler, Locale locale) Compiles the given expression string intosource code.FlFunction.compile(CompilationResult<T>[] argResults) Generates thesource codefor the function given thecompilation resultsfor the arguments.IdentifierResolver.compile(String identifier, ExprCompiler<T> exprCompiler, Locale locale) Returns the compilation result for the indicated identifier.BinaryOperation.generate(CompilationResult<T> lhs, CompilationResult<T> rhs) Generates the combinedCompilationResultfrom the given operands.UnaryOperation.generate(CompilationResult<T> arg) Generates theCompilationResultfor the given operand.protected CompilationResult<T>ParseTreeVisitor.generateConstant(SimpleNode node, org.faktorips.datatype.Datatype datatype) ExprCompiler.getBinaryOperation(String operator, AbstractCompilationResult<T> lhsResult, AbstractCompilationResult<T> rhsResult) ExprCompiler.getMatchingFunctionUsingConversion(CompilationResult<T>[] argResults, org.faktorips.datatype.Datatype[] argTypes, String fctName) ExprCompiler.getMatchingFunctionUsingConversionSingleArgument(AbstractCompilationResult<T> argResult, org.faktorips.datatype.Datatype argTypes, String fctName) static final CompilationResult<org.faktorips.codegen.JavaCodeFragment>CompilationResultImpl.newResultUndefinedIdentifier(Locale locale, String identifier) Creates a newCompilationResult, that contains aMessagethat the given identifier is undefined.protected CompilationResult<T>ExprCompiler.parseExceptionToResult(ParseException e) Methods in org.faktorips.fl with parameters of type CompilationResultModifier and TypeMethodDescriptionvoidAbstractCompilationResult.add(CompilationResult<T> result) Appends the given compilation result's source code fragment and messages to this result's source code fragment.FlFunction.compile(CompilationResult<T>[] argResults) Generates thesource codefor the function given thecompilation resultsfor the arguments.BinaryOperation.generate(CompilationResult<T> lhs, CompilationResult<T> rhs) Generates the combinedCompilationResultfrom the given operands.UnaryOperation.generate(CompilationResult<T> arg) Generates theCompilationResultfor the given operand.final org.faktorips.datatype.Datatype[]AbstractCompilationResult.getDatatypes(CompilationResult<T>[] results) Extracts the datatypes from an array of compilation results.ExprCompiler.getMatchingFunctionUsingConversion(CompilationResult<T>[] argResults, org.faktorips.datatype.Datatype[] argTypes, String fctName) -
Uses of CompilationResult in org.faktorips.fl.functions
Methods in org.faktorips.fl.functions that return CompilationResultModifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>Abs.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractIf.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractVarArgFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Count.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Exists.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>IfBoolean.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>IsEmpty.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxComparableDatatypes.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Max: (p1.compareTo(p2) > 0 ? p1 : p2)CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxMoney.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxNativeTypes.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Not.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>NotBoolean.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>PowerDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>PowerInt.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Round.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>SqrtDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>SumBeanArrayPropertyFct.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden Method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>SumDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>TextFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>WholeNumber.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.generateFunctionCall(CompilationResultImpl argument1, CompilationResultImpl argument2) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>SumList.generateFunctionCall(CompilationResultImpl argument1, CompilationResultImpl argument2) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.generateFunctionCode(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.validateBasicDatatype(org.faktorips.datatype.Datatype basicDatatype) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxList.validateBasicDatatype(org.faktorips.datatype.Datatype basicDatatype) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>SumList.validateBasicDatatype(org.faktorips.datatype.Datatype basicDatatype) Methods in org.faktorips.fl.functions with parameters of type CompilationResultModifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>Abs.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractIf.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractVarArgFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Count.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Exists.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>IfBoolean.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>IsEmpty.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxComparableDatatypes.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Max: (p1.compareTo(p2) > 0 ? p1 : p2)CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxMoney.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>MinMaxNativeTypes.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Not.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>NotBoolean.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>PowerDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>PowerInt.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Round.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>SqrtDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>SumBeanArrayPropertyFct.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden Method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>SumDecimal.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.CompilationResult<org.faktorips.codegen.JavaCodeFragment>TextFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>WholeNumber.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) Overridden method.protected abstract voidAbstractBaseVarArgFunction.compileInternal(CompilationResult<T> returnValue, CompilationResult<T>[] convertedArgs, T fragment) The actual compile logic for this function has to be implemented within this method.protected voidAnd.compileInternal(CompilationResult<org.faktorips.codegen.JavaCodeFragment> returnValue, CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] convertedArgs, org.faktorips.codegen.JavaCodeFragment fragment) protected voidOr.compileInternal(CompilationResult<org.faktorips.codegen.JavaCodeFragment> returnValue, CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] convertedArgs, org.faktorips.codegen.JavaCodeFragment fragment) protected CompilationResultImplAbstractListFunction.createCompilationResult(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument, org.faktorips.codegen.JavaCodeFragment fragment) protected CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.generateFunctionCode(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument) protected org.faktorips.datatype.DatatypeAbstractListFunction.getBasicType(CompilationResult<org.faktorips.codegen.JavaCodeFragment> listArgument) protected org.faktorips.datatype.DatatypeAbstractBaseVarArgFunction.getExpectedDatatypeForArgResultConversion(CompilationResult<T>[] argResults) Returns the expectedDatatypeused to convert arguments in a varargs statement to a commonDatatype.protected AbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractListFunction.getListArgument(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) protected voidMinMaxDouble.writeBody(org.faktorips.codegen.JavaCodeFragment fragment, CompilationResult<org.faktorips.codegen.JavaCodeFragment> first, CompilationResult<org.faktorips.codegen.JavaCodeFragment> second) protected voidMinMaxInt.writeBody(org.faktorips.codegen.JavaCodeFragment fragment, CompilationResult<org.faktorips.codegen.JavaCodeFragment> first, CompilationResult<org.faktorips.codegen.JavaCodeFragment> second) protected voidMinMaxLong.writeBody(org.faktorips.codegen.JavaCodeFragment fragment, CompilationResult<org.faktorips.codegen.JavaCodeFragment> first, CompilationResult<org.faktorips.codegen.JavaCodeFragment> second) protected abstract voidMinMaxNativeTypes.writeBody(org.faktorips.codegen.JavaCodeFragment fragment, CompilationResult<org.faktorips.codegen.JavaCodeFragment> first, CompilationResult<org.faktorips.codegen.JavaCodeFragment> second) -
Uses of CompilationResult in org.faktorips.fl.functions.date
Methods in org.faktorips.fl.functions.date that return CompilationResultModifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractPeriodFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Date.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Days360.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) ((d2.getYear() - d1.getYear()) * 360 + (d2.getMonthOfYear() - d1.getMonthOfYear()) * 30 + (Math.min(d2.getDayOfMonth(), 30) - Math.min(d1.getDayOfMonth(), 30)))Methods in org.faktorips.fl.functions.date with parameters of type CompilationResultModifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractPeriodFunction.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Date.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) CompilationResult<org.faktorips.codegen.JavaCodeFragment>Days360.compile(CompilationResult<org.faktorips.codegen.JavaCodeFragment>[] argResults) ((d2.getYear() - d1.getYear()) * 360 + (d2.getMonthOfYear() - d1.getMonthOfYear()) * 30 + (Math.min(d2.getDayOfMonth(), 30) - Math.min(d1.getDayOfMonth(), 30))) -
Uses of CompilationResult in org.faktorips.fl.operations
Methods in org.faktorips.fl.operations that return CompilationResultModifier and TypeMethodDescriptionCompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractUnaryJavaOperation.generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> arg) Methods in org.faktorips.fl.operations with parameters of type CompilationResultModifier and TypeMethodDescriptionAbstractCompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractBinaryJavaOperation.generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> lhs, CompilationResult<org.faktorips.codegen.JavaCodeFragment> rhs) CompilationResult<org.faktorips.codegen.JavaCodeFragment>AbstractUnaryJavaOperation.generate(CompilationResult<org.faktorips.codegen.JavaCodeFragment> arg)