|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectariba.util.expr.SimpleNode
public abstract class SimpleNode
Field Summary | |
---|---|
static java.lang.String |
TRACE_NULL
Text output when value is null |
static java.lang.String |
TRACE_UNKNOWN
Text output when field/value can not be determined |
Constructor Summary | |
---|---|
SimpleNode(ariba.util.expr.ExprParser p,
int i)
|
|
SimpleNode(int i)
|
Method Summary | |
---|---|
void |
accept(ASTNodeVisitor visitor)
|
void |
dump(java.io.PrintWriter writer,
java.lang.String prefix)
|
int |
getIndexInParent()
|
Node |
getNextSibling()
|
TypeInfo |
getTypeInfo()
|
java.lang.Object |
getValue(ExprContext context,
java.lang.Object source)
Extracts the value from the given source object that is appropriate for this node within the given context. |
boolean |
isConstant(ExprContext context)
|
static boolean |
isExpressionTracingEnabled()
Determine if expression tracing is enabled. |
boolean |
isNodeConstant(ExprContext context)
Returns true iff this node is constant without respect to the children. |
boolean |
isNodeSimpleProperty(ExprContext context)
|
boolean |
isSimpleNavigationChain(ExprContext context)
|
boolean |
isSimpleProperty(ExprContext context)
|
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of children. |
void |
jjtClose()
This method is called after all the child nodes have been added. |
Node |
jjtGetChild(int i)
This method returns a child node. |
int |
jjtGetNumChildren()
Return the number of children the node has. |
Node |
jjtGetParent()
|
void |
jjtOpen()
This method is called after the node has been made the current node. |
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent. |
void |
setTypeInfo(TypeInfo typeInfo)
|
void |
setValue(ExprContext context,
java.lang.Object target,
java.lang.Object value)
Sets the given value in the given target as appropriate for this node within the given context. |
java.lang.String |
toString()
|
java.lang.String |
toString(java.lang.String prefix)
|
static void |
traceExpression(java.lang.CharSequence msg)
Log an expression trace. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRACE_UNKNOWN
public static final java.lang.String TRACE_NULL
null
Constructor Detail |
---|
public SimpleNode(int i)
public SimpleNode(ariba.util.expr.ExprParser p, int i)
Method Detail |
---|
public void jjtOpen()
Node
jjtOpen
in interface Node
public void jjtClose()
Node
jjtClose
in interface Node
public void jjtSetParent(Node n)
Node
jjtSetParent
in interface Node
public Node jjtGetParent()
jjtGetParent
in interface Node
public void jjtAddChild(Node n, int i)
Node
jjtAddChild
in interface Node
public Node jjtGetChild(int i)
Node
jjtGetChild
in interface Node
public int jjtGetNumChildren()
Node
jjtGetNumChildren
in interface Node
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String prefix)
public void dump(java.io.PrintWriter writer, java.lang.String prefix)
public int getIndexInParent()
public Node getNextSibling()
public final java.lang.Object getValue(ExprContext context, java.lang.Object source) throws ExprException
Node
getValue
in interface Node
ExprException
public final void setValue(ExprContext context, java.lang.Object target, java.lang.Object value) throws ExprException
Node
setValue
in interface Node
ExprException
public boolean isNodeConstant(ExprContext context) throws ExprException
ExprException
public boolean isConstant(ExprContext context) throws ExprException
ExprException
public boolean isNodeSimpleProperty(ExprContext context) throws ExprException
ExprException
public boolean isSimpleProperty(ExprContext context) throws ExprException
ExprException
public boolean isSimpleNavigationChain(ExprContext context) throws ExprException
ExprException
public void accept(ASTNodeVisitor visitor)
accept
in interface Node
public TypeInfo getTypeInfo()
getTypeInfo
in interface Node
public void setTypeInfo(TypeInfo typeInfo)
setTypeInfo
in interface Node
public static final boolean isExpressionTracingEnabled()
true
iff expression tracing is enabledpublic static final void traceExpression(java.lang.CharSequence msg)
null
text or tracing level insufficient.
msg
- text to output; may be null
or empty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |