|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Ident | +--Function
This class represents a function indentifier
Type
,
SortList
Constructor Summary | |
Function(String name,
boolean c,
boolean infix,
Type type,
SortList params)
Constructor of the function. |
Method Summary | |
int |
getCP()
Get contextual position of the function. |
int |
getDP()
Get downward position of the function. |
int |
getIP()
Get one induction position of this function. |
int |
getOrderNum()
Accessor of the order number of the function. |
SortList |
getParamsType()
Returns list of types of parameters. |
int |
getRA()
Get reflexive argument position of the function. |
int |
getSP()
Get transversal position of the function. |
int |
getTP()
Get topward position of the function. |
Type |
getType()
Returns the return type of the function. |
boolean |
inductionPosition(int p)
Indicates if a specified position is an induction position. |
List |
inductionPositions()
Returns a List representation of induction position of this function. |
boolean |
isConstant()
Indicates if this function symbol is a constant. |
boolean |
isConstructor()
Indicates if this function symbol is a constructor. |
boolean |
isInfix()
Indicates if this function is infix. |
boolean |
lowerThan(Function f)
Tests if this function is before (in order) than an other. |
void |
setCP(int p)
Set a specified position as an contextual position for the function. |
void |
setDP(int p)
Set a specified position as an downward position for the function. |
void |
setInductionPosition(int ip)
Set a specified position as an induction position of the function. |
void |
setOrderNum(int o)
Sets the order number of the function. |
void |
setRA(int p)
Set a specified position as an reflexive argument position for a constructor. |
void |
setSP(int p)
Set a specified position as an transversal position for the function. |
void |
setTP(int p)
Set a specified position as an topward position for the function. |
String |
toString()
Returns a string representation of this function. |
Methods inherited from class Ident |
getName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Function(String name, boolean c, boolean infix, Type type, SortList params)
name
- name of the function.c
- true for constructor symbol.infix
- true for infix operator.type
- return type of the function.params
- list of types of parameters.Method Detail |
public boolean isInfix()
public boolean isConstructor()
public boolean isConstant()
public SortList getParamsType()
public Type getType()
public void setOrderNum(int o)
o
- the new order number of the function.public int getOrderNum()
public void setInductionPosition(int ip)
ip
- the position.public boolean inductionPosition(int p)
p
- the position.public void setDP(int p)
p
- the position.public int getDP()
public void setTP(int p)
p
- the position.public int getTP()
public void setCP(int p)
p
- the position.public int getCP()
public void setSP(int p)
p
- the position.public int getSP()
public void setRA(int p)
p
- the position.public int getRA()
public boolean lowerThan(Function f)
f
- the other function.public String toString()
toString
in class Ident
public List inductionPositions()
public int getIP()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |