|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.csutils.core.query.tree.NodeFactory
public abstract class NodeFactory
Constructor Summary | |
---|---|
NodeFactory()
|
Method Summary | |
---|---|
AdditiveExpression |
addExpression(java.lang.Object pItem1,
java.lang.Object pItem2)
|
Identifier |
allTypes()
|
And |
and(java.lang.Object pItem1,
java.lang.Object pItem2)
|
Concatenation |
concatenate(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates the concatenation of the given items |
MultiplicativeExpression |
divideExpression(java.lang.Object pItem1,
java.lang.Object pItem2)
|
java.lang.Double |
doubleConstant(java.lang.String pNumber)
|
Eq |
eq(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for equality. |
abstract antlr.RecognitionException |
error(java.lang.String pMessage)
|
java.lang.Boolean |
falseConstant()
|
java.lang.Float |
floatConstant(java.lang.String pNumber)
|
Ge |
ge(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for "greater than, or equal to". |
Gt |
gt(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for "greater than". |
Identifier |
identifier(Identifier pId1,
Identifier pId2)
Concatenates the two identifiers. |
Identifier |
identifier(java.lang.String pPath)
Creates a new identifier. |
In |
in(java.lang.Object pLhs,
java.util.List<?> pRhs,
boolean pNot)
|
java.lang.Integer |
integerConstant(java.lang.String pNumber)
|
IsEmpty |
isEmpty(java.lang.Object pObject)
|
IsNull |
isNull(java.lang.Object pObject)
|
Le |
le(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for "lower than, or equal to". |
Like |
like(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for LIKE. |
java.lang.Long |
longConstant(java.lang.String pNumber)
|
Lt |
lt(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for "lower than". |
java.lang.Object |
methodCall(Identifier pId,
java.util.List<java.lang.Object> pArgs)
|
AdditiveExpression |
minusExpression(java.lang.Object pItem1,
java.lang.Object pItem2)
|
MultiplicativeExpression |
multiplyExpression(java.lang.Object pItem1,
java.lang.Object pItem2)
|
Parameter |
namedParameter(java.lang.String pName)
|
NamespaceDeclarationSet |
namespaceDeclaration(NamespaceDeclarationSet pSet,
java.lang.String pPrefix,
java.lang.String pUri)
Returns a set of namespace declarations, which include a mapping for the given prefix and URI. |
Ne |
ne(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for non-equality. |
java.lang.Object |
negate(java.lang.Object pItem)
|
Negation |
notLike(java.lang.Object pItem1,
java.lang.Object pItem2)
Creates a check for NOT LIKE. |
Parameter |
numberedParameter(java.lang.String pNumber)
|
void |
objectType(SelectStatement pStatement,
ObjectType pObjectType)
Adds the given object type (aka, a JOIN clause) to the select statements list of object types. |
ObjectType |
objectType(java.lang.String pName,
java.lang.String pAlias)
Creates a new ObjectType . |
Or |
or(java.lang.Object pItem1,
java.lang.Object pItem2)
|
Parameter |
parameter()
|
SelectStatement |
selectStatement(NamespaceDeclarationSet pNamespaceDeclarations)
Creates a SelectStatement with the given set of
namespace declarations. |
java.lang.String |
stringConstant(java.lang.String pValue)
|
java.lang.Boolean |
trueConstant()
|
java.lang.Object |
unaryMinus(java.lang.Object pItem)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeFactory()
Method Detail |
---|
public abstract antlr.RecognitionException error(java.lang.String pMessage)
public Parameter parameter()
public Parameter namedParameter(java.lang.String pName)
public Parameter numberedParameter(java.lang.String pNumber) throws antlr.RecognitionException
antlr.RecognitionException
public Identifier identifier(java.lang.String pPath)
pPath
- The identifiers path.
public Identifier identifier(Identifier pId1, Identifier pId2)
pId1
- The prefix part of the identifiers path.pId2
- The suffix part of the identifiers path.
public ObjectType objectType(java.lang.String pName, java.lang.String pAlias)
ObjectType
.
pName
- The object types name.pAlias
- The object types alias.
public Or or(java.lang.Object pItem1, java.lang.Object pItem2)
public And and(java.lang.Object pItem1, java.lang.Object pItem2)
public java.lang.Object negate(java.lang.Object pItem)
public java.lang.Object unaryMinus(java.lang.Object pItem)
public Eq eq(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the EQ clause.pItem2
- The right hand side of the EQ clause.
public Like like(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the LIKE clause.pItem2
- The right hand side of the LIKE clause.
public Negation notLike(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the NOT LIKE clause.pItem2
- The right hand side of the NOT LIKE clause.
public Ne ne(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the NE clause.pItem2
- The right hand side of the NE clause.
public Lt lt(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the LT clause.pItem2
- The right hand side of the LT clause.
public Le le(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the LE clause.pItem2
- The right hand side of the LE clause.
public Gt gt(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the GT clause.pItem2
- The right hand side of the GT clause.
public Ge ge(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the GE clause.pItem2
- The right hand side of the GE clause.
public Concatenation concatenate(java.lang.Object pItem1, java.lang.Object pItem2)
pItem1
- The left hand side of the concatentation.pItem2
- The right hand side of the concatenation.
public AdditiveExpression addExpression(java.lang.Object pItem1, java.lang.Object pItem2)
public AdditiveExpression minusExpression(java.lang.Object pItem1, java.lang.Object pItem2)
public MultiplicativeExpression multiplyExpression(java.lang.Object pItem1, java.lang.Object pItem2)
public MultiplicativeExpression divideExpression(java.lang.Object pItem1, java.lang.Object pItem2)
public java.lang.Integer integerConstant(java.lang.String pNumber) throws antlr.RecognitionException
antlr.RecognitionException
public java.lang.Float floatConstant(java.lang.String pNumber) throws antlr.RecognitionException
antlr.RecognitionException
public java.lang.Long longConstant(java.lang.String pNumber) throws antlr.RecognitionException
antlr.RecognitionException
public java.lang.Double doubleConstant(java.lang.String pNumber) throws antlr.RecognitionException
antlr.RecognitionException
public java.lang.String stringConstant(java.lang.String pValue) throws antlr.RecognitionException
antlr.RecognitionException
public java.lang.Boolean trueConstant()
public java.lang.Boolean falseConstant()
public void objectType(SelectStatement pStatement, ObjectType pObjectType) throws antlr.RecognitionException
pStatement
- The select statement to modifypObjectType
- The JOIN clause to add.
antlr.RecognitionException
- The JOIN clauses alias isn't unique.public IsNull isNull(java.lang.Object pObject)
public IsEmpty isEmpty(java.lang.Object pObject)
public java.lang.Object methodCall(Identifier pId, java.util.List<java.lang.Object> pArgs)
public SelectStatement selectStatement(NamespaceDeclarationSet pNamespaceDeclarations)
SelectStatement
with the given set of
namespace declarations.
pNamespaceDeclarations
- The set of namespace declarations to use.
public NamespaceDeclarationSet namespaceDeclaration(NamespaceDeclarationSet pSet, java.lang.String pPrefix, java.lang.String pUri)
pSet
- The namespace declaration set to modify, if any, or null, if a new set
should be created.pPrefix
- The new namespace declarations prefix.pUri
- The new namespace declarations URI.
public Identifier allTypes()
public In in(java.lang.Object pLhs, java.util.List<?> pRhs, boolean pNot)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |