|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectforge.program.ForgeProgram
public final class ForgeProgram
Manages the Forge classes, fields, and procedures.
Constructor Summary | |
---|---|
ForgeProgram()
Constructs an empty Forge program. |
Method Summary | |
---|---|
BooleanDomain |
booleanDomain()
Returns the boolean domain. |
void |
checkProgram(ProgramElement elem)
|
ForgeType.Unary |
empty()
Returns the empty set constant/type. |
ForgeType |
empty(int arity)
Returns the empty constant/type of the specified arity. |
LocalDecls |
emptyDecls()
Returns the empty decls. |
BooleanLiteral |
falseLiteral()
Returns the false literal. |
java.util.Set<GlobalVariable> |
globalVariables()
Returns the set of all global variables in the program. |
java.util.Set<InstanceDomain> |
instanceDomains()
Returns the instance domains. |
java.util.Set<InstanceLiteral> |
instanceLiterals()
Returns the set of all instance literals. |
IntegerDomain |
integerDomain()
Returns the integer domain. |
IntegerLiteral |
integerLiteral(int value)
Returns the integer literal with the specified value. |
GlobalVariable |
newGlobalVariable(java.lang.String name,
ForgeType type)
Constructs and returns a new global variable. |
InstanceDomain |
newInstanceDomain(java.lang.String name)
Constructs and returns a new instance domain. |
InstanceLiteral |
newInstanceLiteral(java.lang.String name,
InstanceDomain type)
Constructs and returns a new instance literal. |
LocalVariable |
newLocalVariable(java.lang.String name,
ForgeType type)
Constructs and returns a new local variable. |
ForgeProcedure |
newProcedure(java.lang.String name,
LocalDecls ins,
LocalDecls outs)
Constructs and returns a new procedure. |
BooleanLiteral |
trueLiteral()
Returns the true literal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ForgeProgram()
Method Detail |
---|
public void checkProgram(ProgramElement elem)
public ForgeType.Unary empty()
public ForgeType empty(int arity)
public LocalDecls emptyDecls()
public BooleanDomain booleanDomain()
public IntegerDomain integerDomain()
public InstanceDomain newInstanceDomain(java.lang.String name)
public java.util.Set<InstanceDomain> instanceDomains()
public BooleanLiteral trueLiteral()
public BooleanLiteral falseLiteral()
public IntegerLiteral integerLiteral(int value)
public InstanceLiteral newInstanceLiteral(java.lang.String name, InstanceDomain type)
public java.util.Set<InstanceLiteral> instanceLiterals()
public GlobalVariable newGlobalVariable(java.lang.String name, ForgeType type)
public java.util.Set<GlobalVariable> globalVariables()
public LocalVariable newLocalVariable(java.lang.String name, ForgeType type)
public ForgeProcedure newProcedure(java.lang.String name, LocalDecls ins, LocalDecls outs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |