|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.jaskell.ast.FunDef
Represents an uncompiled function definition.
Constructor Summary | |
FunDef(int from,
java.lang.String name,
Alternative[] alternatives)
Create a FunDef object. |
|
FunDef(int from,
java.lang.String name,
Alternative[] alternatives,
Location loc)
Create a FunDef object. |
Method Summary | |
Alternative[] |
getAlternatives()
Get all the alternative definitions of this function. |
int |
getIndex()
Get the starting index in the original source. |
Location |
getLocation()
Get the location that is readable to human being. |
java.lang.String |
getName()
Get the function name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FunDef(int from, java.lang.String name, Alternative[] alternatives)
from
- the index in the original source.name
- the name of this function.alternatives
- the alternative definitions.public FunDef(int from, java.lang.String name, Alternative[] alternatives, Location loc)
from
- the index in the original source.name
- the name of this function.alternatives
- the alternative definitions.loc
- the location in the original source.Method Detail |
public Alternative[] getAlternatives()
public java.lang.String getName()
public int getIndex()
jfun.jaskell.ast.Indexed
getIndex
in interface jfun.jaskell.ast.Indexed
public Location getLocation()
jfun.jaskell.ast.Indexed
getLocation
in interface jfun.jaskell.ast.Indexed
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |