public class ObserverFunction extends Function implements IObserverFunction
| Modifier and Type | Field and Description |
|---|---|
private KeYJavaType |
container |
private int |
heapCount |
private boolean |
isStatic |
private ImmutableArray<KeYJavaType> |
paramTypes |
private int |
stateCount |
private KeYJavaType |
type |
| Constructor and Description |
|---|
ObserverFunction(java.lang.String baseName,
Sort sort,
KeYJavaType type,
Sort heapSort,
KeYJavaType container,
boolean isStatic,
ImmutableArray<KeYJavaType> paramTypes,
int heapCount,
int stateCount) |
| Modifier and Type | Method and Description |
|---|---|
static ProgramElementName |
createName(java.lang.String baseName,
KeYJavaType container) |
private static Sort[] |
getArgSorts(Sort heapSort,
KeYJavaType container,
boolean isStatic,
ImmutableArray<KeYJavaType> paramTypes,
int heapCount,
int stateCount) |
KeYJavaType |
getContainerType()
Returns the container type of this symbol; for non-static observer
symbols, this corresponds to the sort of its second argument.
|
int |
getHeapCount(Services services)
Check the heap count of the declaration, e.g. the base heap and extra heap.
|
int |
getNumParams()
Gives the number of parameters of the observer symbol.
|
KeYJavaType |
getParamType(int i)
Gives the type of the i-th parameter of this observer symbol.
|
ImmutableArray<KeYJavaType> |
getParamTypes()
Returns the parameter types of this observer symbol.
|
int |
getStateCount()
Check the state count of the declaration (no_state = 0, two_state = 2, 1 otherwise).
|
KeYJavaType |
getType()
Returns the result type of this symbol.
|
boolean |
isStatic()
Tells whether the observer symbol is static.
|
isSkolemConstant, isUnique, proofToString, rename, toStringadditionalValidTopLevel, additionalValidTopLevel2, argSort, argSorts, sort, sortarity, bindVarsAt, isRigid, name, validTopLevel, whereToBindclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitargSort, argSorts, sortarity, bindVarsAt, isRigid, sort, validTopLevelprivate final KeYJavaType container
private final boolean isStatic
private final ImmutableArray<KeYJavaType> paramTypes
private final KeYJavaType type
private final int heapCount
private final int stateCount
public ObserverFunction(java.lang.String baseName,
Sort sort,
KeYJavaType type,
Sort heapSort,
KeYJavaType container,
boolean isStatic,
ImmutableArray<KeYJavaType> paramTypes,
int heapCount,
int stateCount)
public static ProgramElementName createName(java.lang.String baseName, KeYJavaType container)
private static Sort[] getArgSorts(Sort heapSort, KeYJavaType container, boolean isStatic, ImmutableArray<KeYJavaType> paramTypes, int heapCount, int stateCount)
public final KeYJavaType getType()
IObserverFunctiongetType in interface IObserverFunctionpublic final KeYJavaType getContainerType()
IObserverFunctiongetContainerType in interface IObserverFunctionpublic final boolean isStatic()
IObserverFunctionisStatic in interface IObserverFunctionpublic int getStateCount()
IObserverFunctiongetStateCount in interface IObserverFunctionpublic int getHeapCount(Services services)
IObserverFunctiongetHeapCount in interface IObserverFunctionpublic final int getNumParams()
IObserverFunctiongetNumParams in interface IObserverFunctionpublic final KeYJavaType getParamType(int i)
IObserverFunctiongetParamType in interface IObserverFunctionpublic final ImmutableArray<KeYJavaType> getParamTypes()
IObserverFunctiongetParamTypes in interface IObserverFunction