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