|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.gfcutil.LinRule
public class LinRule
Contains the linearization rule for a function.
Constructor Summary | |
---|---|
LinRule(java.lang.String name,
se.chalmers.cs.gf.GFC.Absyn.ListArgVar param,
se.chalmers.cs.gf.GFC.Absyn.Term term)
Construct a linearization rule. |
Method Summary | |
---|---|
int |
getArity()
Get the number of arguments that this linearization rule takes (the same the number of arguments to the corresponing function). |
java.lang.String |
getName()
Get the name of the function which is lineatized. |
se.chalmers.cs.gf.GFC.Absyn.Term |
getTerm()
Get the linearization rule body. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LinRule(java.lang.String name, se.chalmers.cs.gf.GFC.Absyn.ListArgVar param, se.chalmers.cs.gf.GFC.Absyn.Term term)
name
- The name of the function which this rule is for.param
- The formal arguments of the function.term
- The body of the function, as a GF term.Method Detail |
---|
public java.lang.String getName()
getName
in interface Definition
public se.chalmers.cs.gf.GFC.Absyn.Term getTerm()
public int getArity()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |