public class Terms extends Object
Modifier and Type | Field and Description |
---|---|
protected static CoherenceQueryLanguage |
f_language
The default
CoherenceQueryLanguage used by this QueryHelper when no language
is provided to methods. |
Constructor and Description |
---|
Terms() |
Modifier and Type | Method and Description |
---|---|
static Term |
create(String s)
Create a Tree of Terms using the Term Language in the given String
|
static Term |
create(String s,
CoherenceQueryLanguage language)
Create a Tree of Terms using the Term Language in the given String
|
static Term |
newTerm(String sFunctor)
Construct a new TermNode with the given functor.
|
static Term |
newTerm(String sFunctor,
Term t1)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
newTerm(String sFunctor,
Term[] aTerms)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
newTerm(String sFunctor,
Term t1,
Term t2)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
newTerm(String sFunctor,
Term t1,
Term t2,
Term t3)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
newTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4)
Construct a new TermNode with the given functor and given Terms.
|
static Term |
newTerm(String sFunctor,
Term t1,
Term t2,
Term t3,
Term t4,
Term t5)
Construct a new TermNode with the given functor and given Terms.
|
protected static final CoherenceQueryLanguage f_language
CoherenceQueryLanguage
used by this QueryHelper when no language
is provided to methods.public static Term newTerm(String sFunctor)
sFunctor
- the functor for the Termpublic static Term newTerm(String sFunctor, Term[] aTerms)
sFunctor
- the functor for the TermaTerms
- an children of the nodepublic static Term newTerm(String sFunctor, Term t1)
sFunctor
- the functor for the Termt1
- a child termpublic static Term newTerm(String sFunctor, Term t1, Term t2)
sFunctor
- the functor for the Termt1
- a child termt2
- a child termpublic static Term newTerm(String sFunctor, Term t1, Term t2, Term t3)
sFunctor
- the functor for the Termt1
- a child termt2
- a child termt3
- a child termpublic static Term newTerm(String sFunctor, Term t1, Term t2, Term t3, Term t4)
sFunctor
- the functor for the Termt1
- a child termt2
- a child termt3
- a child termt4
- a child termpublic static Term newTerm(String sFunctor, Term t1, Term t2, Term t3, Term t4, Term t5)
sFunctor
- the functor for the Termt1
- a child termt2
- a child termt3
- a child termt4
- a child termt5
- a child termpublic static Term create(String s)
s
- String representing a Term treepublic static Term create(String s, CoherenceQueryLanguage language)
s
- String representing a Term tree