|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.xmloperator.lambda.tree.util.FactoryUtils
Utilities about building Expressions and returning them to their factory.
| Constructor Summary | |
FactoryUtils()
|
|
| Method Summary | |
static Abstraction |
newAbstraction(Term body)
Creates and returns a new Abstraction. |
static Application |
newApplication(Term body,
Term argument)
Creates and returns a new Application. |
static EndOfScope |
newEndOfScope(Term body)
Creates and returns a new EndOfScope. |
static Term |
newLeaf(TermFactory termFactory,
int endOfScopeCount)
Creates and returns a Leaf contained in a sequence of EndOfScopes. |
static void |
returnTerm(Term rootTerm)
Return a Term and its content to the factory. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FactoryUtils()
| Method Detail |
public static final Term newLeaf(TermFactory termFactory,
int endOfScopeCount)
termFactory - a TermFactory.endOfScopeCount - a count of EndOfScope(s).
public static final EndOfScope newEndOfScope(Term body)
body - a body for the EndOfSCope.
java.lang.NullPointerException - if the given body is null.public static final Abstraction newAbstraction(Term body)
body - a body for the Abstraction.
java.lang.NullPointerException - if the given body is null.
public static final Application newApplication(Term body,
Term argument)
body - its body.argument - its argument.
java.lang.NullPointerException - if the given body is null.public static final void returnTerm(Term rootTerm)
rootTerm - a no more used Term.
java.lang.NullPointerException - if the given Term is broken.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||