|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object se.chalmers.cs.gf.gfcutil.GFCModule
public class GFCModule
Wraps a GFC module (concrete, abstract or resource) and provides methods for looking up its contents.
Constructor Summary | |
---|---|
GFCModule(se.chalmers.cs.gf.GFC.Absyn.Mod mod,
java.util.Map<java.lang.String,GFCModule> allModules)
|
Method Summary | |
---|---|
boolean |
equals(GFCModule mod)
|
boolean |
equals(java.lang.Object o)
|
Function |
findFunction(java.lang.String f)
Find a function by name. |
LinRule |
findLinRule(java.lang.String f)
Find a linearization rule by function name. |
java.lang.String |
getAbstract()
Get the name of the abstract module that this module is for. |
java.lang.String |
getName()
Get the name of this module. |
ModuleType |
getType()
Checks if this module is concrete. |
int |
hashCode()
|
java.util.Set<java.lang.String> |
listCategories()
Get all categories used as the result of functions in this module, including inherited ones. |
java.util.Set<Function> |
listFunctions()
Get all functions in this module, including inherited ones. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GFCModule(se.chalmers.cs.gf.GFC.Absyn.Mod mod, java.util.Map<java.lang.String,GFCModule> allModules)
mod
- A module parse treeallModules
- A reference to a map of module names to
modules. The map need not be populated when passed to
the contructor, but it must be before find is called.Method Detail |
---|
public java.lang.String getName()
public ModuleType getType()
public java.lang.String getAbstract()
public Function findFunction(java.lang.String f)
public java.util.Set<Function> listFunctions()
public LinRule findLinRule(java.lang.String f)
public java.util.Set<java.lang.String> listCategories()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(GFCModule mod)
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |