Package org.faktorips.fl
Class FunctionSignatureImpl
java.lang.Object
org.faktorips.fl.FunctionSignatureImpl
- All Implemented Interfaces:
FunctionSignature
- Direct Known Subclasses:
AbstractBaseFlFunction
Default implementation of FunctionSignature.
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionSignatureImpl(String name, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype argType) Creates a new function signature with a variable argument list.FunctionSignatureImpl(String name, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype[] argTypes) Creates a new function signature with a defined argument list.FunctionSignatureImpl(String name, FunctionSignatures signature) Creates a new function signature with a defined argument list. -
Method Summary
Modifier and TypeMethodDescriptionorg.faktorips.datatype.Datatype[]Overridden method.getName()Overridden method.org.faktorips.datatype.DatatypegetType()Overridden method.booleanIndicates if this function has a variable argument list.booleanisSame(FunctionSignature fctSignature) Returns true if the given fctSignature is the same as this one.booleanOverridden method.booleanmatchUsingConversion(String name, org.faktorips.datatype.Datatype[] otherArgTypes, org.faktorips.datatype.ConversionMatrix matrix) Overridden method.toString()
-
Constructor Details
-
FunctionSignatureImpl
Creates a new function signature with a defined argument list. -
FunctionSignatureImpl
public FunctionSignatureImpl(String name, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype[] argTypes) Creates a new function signature with a defined argument list. -
FunctionSignatureImpl
public FunctionSignatureImpl(String name, org.faktorips.datatype.Datatype type, org.faktorips.datatype.Datatype argType) Creates a new function signature with a variable argument list.- Parameters:
name- the name of this function signaturetype- the return type of this function signatureargType- defines the Datatype of the arguments in the variable argument list
-
-
Method Details
-
getType
public org.faktorips.datatype.Datatype getType()Overridden method.- Specified by:
getTypein interfaceFunctionSignature- See Also:
-
getName
Overridden method.- Specified by:
getNamein interfaceFunctionSignature- See Also:
-
getArgTypes
public org.faktorips.datatype.Datatype[] getArgTypes()Overridden method.- Specified by:
getArgTypesin interfaceFunctionSignature- See Also:
-
match
Overridden method.- Specified by:
matchin interfaceFunctionSignature- See Also:
-
matchUsingConversion
public boolean matchUsingConversion(String name, org.faktorips.datatype.Datatype[] otherArgTypes, org.faktorips.datatype.ConversionMatrix matrix) Overridden method. -
isSame
Description copied from interface:FunctionSignatureReturns true if the given fctSignature is the same as this one. This is the case if they have the same type, name and the arguments' types are the same (in the same order).- Specified by:
isSamein interfaceFunctionSignature
-
toString
-
hasVarArgs
public boolean hasVarArgs()Description copied from interface:FunctionSignatureIndicates if this function has a variable argument list. If so the return value of the getArgTyes() method is an array of lenght 1 and contains the Datatype that is valid for all arguments of this function.- Specified by:
hasVarArgsin interfaceFunctionSignature
-