oracle.jbo.expr
Class JIParserNode
java.lang.Object
oracle.jbo.expr.JIParserNode
- Direct Known Subclasses:
- JIParserMethodNode, JIParserNodeCB, JIParserNodeSelect
public class JIParserNode
- extends java.lang.Object
Constructor Summary |
JIParserNode(JIExpr expr,
int typ,
java.lang.String s,
java.lang.Object v)
|
Method Summary |
static java.lang.Object |
binaryOperation(java.lang.Object lVal,
java.lang.Object rVal,
int typ,
JIValueSupplier valueSupplier)
|
static java.lang.Object |
binaryOperation(java.lang.Object lVal,
java.lang.Object rVal,
int typ,
JIValueSupplier valueSupplier,
JIExpr expr)
|
protected static void |
cantConvert(java.lang.Object rVal,
java.lang.String targetTypeName)
|
static boolean |
convertIntoBoolean(java.lang.Object rVal)
|
static double |
convertIntoDouble(java.lang.Object rVal)
|
static int |
convertIntoInteger(java.lang.Object rVal)
|
static long |
convertIntoLong(java.lang.Object rVal)
|
static java.lang.String |
convertIntoString(java.lang.Object rVal)
|
java.lang.Object |
evaluate(JIValueSupplier valueSupplier)
|
JIExpr |
getExpr()
|
java.lang.String |
getFullIdentName()
|
JIParserNode |
getLeftChild()
|
int |
getNodeType()
|
JIParserNode |
getParent()
|
java.lang.Object |
getParentVal(JIValueSupplier valueSupplier)
|
JIParserNode |
getRightChild()
|
java.lang.String |
getString()
|
java.lang.Object |
getVal()
|
java.lang.Object |
getVal(JIValueSupplier valueSupplier)
|
java.lang.String |
indent(int lev)
|
boolean |
isRValue()
|
JIParserNode |
locateNode(JIParserNodeLocator locator,
JIParserNode[] toExclude)
|
JIParserNode |
locateNodeOfType(int[] types,
JIParserNode[] toExclude)
|
void |
setIsRValue(boolean b)
|
void |
setLeftChild(JIParserNode child)
|
void |
setNodeType(int newType)
|
void |
setRightChild(JIParserNode child)
|
void |
setString(java.lang.String s)
|
void |
setVal(java.lang.Object v)
|
void |
setVal(java.lang.Object v,
JIValueSupplier valueSupplier)
|
java.lang.String |
toString()
|
java.lang.String |
toString(int lev,
java.lang.String header)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NODE_TYP_NONE
public static final int NODE_TYP_NONE
- See Also:
- Constant Field Values
NODE_TYP_NULL
public static final int NODE_TYP_NULL
- See Also:
- Constant Field Values
NODE_TYP_INTEGER
public static final int NODE_TYP_INTEGER
- See Also:
- Constant Field Values
NODE_TYP_STRING
public static final int NODE_TYP_STRING
- See Also:
- Constant Field Values
NODE_TYP_BOOLEAN
public static final int NODE_TYP_BOOLEAN
- See Also:
- Constant Field Values
NODE_TYP_CHAR
public static final int NODE_TYP_CHAR
- See Also:
- Constant Field Values
NODE_TYP_DECIMAL
public static final int NODE_TYP_DECIMAL
- See Also:
- Constant Field Values
NODE_TYP_LONG
public static final int NODE_TYP_LONG
- See Also:
- Constant Field Values
NODE_TYP_BIGINTEGER
public static final int NODE_TYP_BIGINTEGER
- See Also:
- Constant Field Values
NODE_TYP_LIMIT_LITERAL_VALUES
public static final int NODE_TYP_LIMIT_LITERAL_VALUES
- See Also:
- Constant Field Values
NODE_TYP_IDENT
public static final int NODE_TYP_IDENT
- See Also:
- Constant Field Values
NODE_TYP_METHOD_CALL
public static final int NODE_TYP_METHOD_CALL
- See Also:
- Constant Field Values
NODE_TYP_ARRAY
public static final int NODE_TYP_ARRAY
- See Also:
- Constant Field Values
NODE_TYP_NEGATIVE
public static final int NODE_TYP_NEGATIVE
- See Also:
- Constant Field Values
NODE_TYP_MULTIPLY
public static final int NODE_TYP_MULTIPLY
- See Also:
- Constant Field Values
NODE_TYP_DIVIDE
public static final int NODE_TYP_DIVIDE
- See Also:
- Constant Field Values
NODE_TYP_MOD
public static final int NODE_TYP_MOD
- See Also:
- Constant Field Values
NODE_TYP_ADD
public static final int NODE_TYP_ADD
- See Also:
- Constant Field Values
NODE_TYP_SUBTRACT
public static final int NODE_TYP_SUBTRACT
- See Also:
- Constant Field Values
NODE_TYP_AND
public static final int NODE_TYP_AND
- See Also:
- Constant Field Values
NODE_TYP_OR
public static final int NODE_TYP_OR
- See Also:
- Constant Field Values
NODE_TYP_NOT
public static final int NODE_TYP_NOT
- See Also:
- Constant Field Values
NODE_TYP_CONCAT
public static final int NODE_TYP_CONCAT
- See Also:
- Constant Field Values
NODE_TYP_EQ
public static final int NODE_TYP_EQ
- See Also:
- Constant Field Values
NODE_TYP_GT
public static final int NODE_TYP_GT
- See Also:
- Constant Field Values
NODE_TYP_GE
public static final int NODE_TYP_GE
- See Also:
- Constant Field Values
NODE_TYP_LT
public static final int NODE_TYP_LT
- See Also:
- Constant Field Values
NODE_TYP_LE
public static final int NODE_TYP_LE
- See Also:
- Constant Field Values
NODE_TYP_NE
public static final int NODE_TYP_NE
- See Also:
- Constant Field Values
NODE_TYP_REGEXP
public static final int NODE_TYP_REGEXP
- See Also:
- Constant Field Values
NODE_TYP_ASSIGN
public static final int NODE_TYP_ASSIGN
- See Also:
- Constant Field Values
NODE_TYP_NEW
public static final int NODE_TYP_NEW
- See Also:
- Constant Field Values
NODE_TYP_IS_VALID
public static final int NODE_TYP_IS_VALID
- See Also:
- Constant Field Values
NODE_TYP_VAR
public static final int NODE_TYP_VAR
- See Also:
- Constant Field Values
NODE_TYP_COMPOUND
public static final int NODE_TYP_COMPOUND
- See Also:
- Constant Field Values
NODE_TYP_IF
public static final int NODE_TYP_IF
- See Also:
- Constant Field Values
NODE_TYP_WHILE
public static final int NODE_TYP_WHILE
- See Also:
- Constant Field Values
NODE_TYP_BEGIN
public static final int NODE_TYP_BEGIN
- See Also:
- Constant Field Values
NODE_TYP_END_BLOCK
public static final int NODE_TYP_END_BLOCK
- See Also:
- Constant Field Values
NODE_TYP_BEGIN_IF_COND
public static final int NODE_TYP_BEGIN_IF_COND
- See Also:
- Constant Field Values
NODE_TYP_END_IF_COND
public static final int NODE_TYP_END_IF_COND
- See Also:
- Constant Field Values
NODE_TYP_BEGIN_WHILE_COND
public static final int NODE_TYP_BEGIN_WHILE_COND
- See Also:
- Constant Field Values
NODE_TYP_END_WHILE_COND
public static final int NODE_TYP_END_WHILE_COND
- See Also:
- Constant Field Values
NODE_TYP_BEGIN_BLOCK
public static final int NODE_TYP_BEGIN_BLOCK
- See Also:
- Constant Field Values
NODE_TYP_ELSE
public static final int NODE_TYP_ELSE
- See Also:
- Constant Field Values
NODE_TYP_DECLARE
public static final int NODE_TYP_DECLARE
- See Also:
- Constant Field Values
NODE_TYP_IS
public static final int NODE_TYP_IS
- See Also:
- Constant Field Values
NODE_TYP_IS_NOT
public static final int NODE_TYP_IS_NOT
- See Also:
- Constant Field Values
NODE_TYP_BETWEEN
public static final int NODE_TYP_BETWEEN
- See Also:
- Constant Field Values
NODE_TYP_NOT_REGEXP
public static final int NODE_TYP_NOT_REGEXP
- See Also:
- Constant Field Values
NODE_TYP_IN
public static final int NODE_TYP_IN
- See Also:
- Constant Field Values
NODE_TYP_NOT_BETWEEN
public static final int NODE_TYP_NOT_BETWEEN
- See Also:
- Constant Field Values
NODE_TYP_NOT_IN
public static final int NODE_TYP_NOT_IN
- See Also:
- Constant Field Values
NODE_TYP_SELECT
public static final int NODE_TYP_SELECT
- See Also:
- Constant Field Values
NODE_TYP_FROM
public static final int NODE_TYP_FROM
- See Also:
- Constant Field Values
NODE_TYP_WHERE
public static final int NODE_TYP_WHERE
- See Also:
- Constant Field Values
JIParserNode
public JIParserNode(JIExpr expr,
int typ,
java.lang.String s,
java.lang.Object v)
getExpr
public JIExpr getExpr()
getNodeType
public int getNodeType()
setNodeType
public void setNodeType(int newType)
isRValue
public boolean isRValue()
setIsRValue
public void setIsRValue(boolean b)
getString
public java.lang.String getString()
setString
public void setString(java.lang.String s)
getVal
public java.lang.Object getVal()
getVal
public java.lang.Object getVal(JIValueSupplier valueSupplier)
setVal
public void setVal(java.lang.Object v)
setVal
public void setVal(java.lang.Object v,
JIValueSupplier valueSupplier)
getParentVal
public java.lang.Object getParentVal(JIValueSupplier valueSupplier)
getParent
public JIParserNode getParent()
getLeftChild
public JIParserNode getLeftChild()
setLeftChild
public void setLeftChild(JIParserNode child)
getRightChild
public JIParserNode getRightChild()
setRightChild
public void setRightChild(JIParserNode child)
getFullIdentName
public java.lang.String getFullIdentName()
cantConvert
protected static void cantConvert(java.lang.Object rVal,
java.lang.String targetTypeName)
convertIntoLong
public static long convertIntoLong(java.lang.Object rVal)
convertIntoInteger
public static int convertIntoInteger(java.lang.Object rVal)
convertIntoDouble
public static double convertIntoDouble(java.lang.Object rVal)
convertIntoString
public static java.lang.String convertIntoString(java.lang.Object rVal)
convertIntoBoolean
public static boolean convertIntoBoolean(java.lang.Object rVal)
locateNodeOfType
public JIParserNode locateNodeOfType(int[] types,
JIParserNode[] toExclude)
locateNode
public JIParserNode locateNode(JIParserNodeLocator locator,
JIParserNode[] toExclude)
binaryOperation
public static java.lang.Object binaryOperation(java.lang.Object lVal,
java.lang.Object rVal,
int typ,
JIValueSupplier valueSupplier)
binaryOperation
public static java.lang.Object binaryOperation(java.lang.Object lVal,
java.lang.Object rVal,
int typ,
JIValueSupplier valueSupplier,
JIExpr expr)
evaluate
public java.lang.Object evaluate(JIValueSupplier valueSupplier)
indent
public java.lang.String indent(int lev)
toString
public java.lang.String toString(int lev,
java.lang.String header)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 1997, 2009, Oracle. All rights reserved.