Class PartialFunctionInfo
java.lang.Object
de.monticore.types3.generics.util.PartialFunctionInfo
describes partial SymTypeOfFunction information,
used during selection of generic overloaded functions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgumentExpr(int idx) getArgumentType(int idx) intbooleanbooleanhasArgumentExpr(int idx) booleanhasArgumentType(int idx) booleanbooleanvoidsetArgumentExpr(int idx, ASTExpression argumentExpr) voidsetArgumentExprs(List<? extends ASTExpression> argumentExprs) QOL: sets all argument expressions + number of arguments at oncevoidsetArgumentType(int idx, SymTypeExpression argumentType) voidsetParameterCount(int parameterCount) voidsetReturnTargetType(SymTypeExpression returnTargetType)
-
Constructor Details
-
PartialFunctionInfo
public PartialFunctionInfo() -
PartialFunctionInfo
-
-
Method Details
-
setReturnTargetType
-
hasReturnTargetType
public boolean hasReturnTargetType() -
getReturnTargetType
-
setParameterCount
public void setParameterCount(int parameterCount) -
hasParameterCount
public boolean hasParameterCount() -
getParameterCount
public int getParameterCount() -
setArgumentType
- Parameters:
argumentType- if null removes entry
-
hasArgumentType
public boolean hasArgumentType(int idx) -
getArgumentType
-
hasAllArgumentTypes
public boolean hasAllArgumentTypes() -
setArgumentExpr
- Parameters:
argumentExpr- if null removes entry
-
setArgumentExprs
QOL: sets all argument expressions + number of arguments at once -
hasArgumentExpr
public boolean hasArgumentExpr(int idx) -
getArgumentExpr
-
getAsFunctionIfComplete
- Returns:
- the collected information as a function, iff complete. WARNING: the returned functions return type is a return target(!) type, NOT the actual expected return type!
-
deepClone
-