Uses of Interface
ognl.Node
Packages that use Node
Package
Description
OGNL stands for Object-Graph Navigation Language; it is an expression language
for getting and setting properties of Java objects.
-
Uses of Node in ognl
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Base class for boolean expressions.class
Base class for types that compare values.class
class
Base class for numeric expressions.class
Modifier and TypeFieldDescriptionprotected Node[]
SimpleNode._children
protected Node
SimpleNode._parent
Modifier and TypeMethodDescriptionstatic Node
Ognl.compileExpression
(OgnlContext context, Object root, String expression) Parses and compiles the given expression using theOgnlExpressionCompiler
returned fromOgnlRuntime.getCompiler()
.OgnlContext.getCurrentNode()
SimpleNode.getNextSibling()
Node.jjtGetChild
(int i) This method returns a child node.SimpleNode.jjtGetChild
(int i) Node.jjtGetParent()
SimpleNode.jjtGetParent()
JJTOgnlParserState.peekNode()
JJTOgnlParserState.popNode()
JJTOgnlParserState.rootNode()
final Node
OgnlParser.topLevelExpression()
This is the top-level construct of OGNL.Modifier and TypeMethodDescriptionvoid
JJTOgnlParserState.clearNodeScope
(Node n) void
JJTOgnlParserState.closeNodeScope
(Node n, boolean condition) void
JJTOgnlParserState.closeNodeScope
(Node n, int num) NumericExpression.coerceToNumeric
(String source, OgnlContext context, Node child) static void
OgnlRuntime.compileExpression
(OgnlContext context, Node expression, Object root) static String
OgnlRuntime.getChildSource
(OgnlContext context, Object target, Node child) Attempts to get the java source string represented by the specific child expression via theJavaSource.toGetSourceString(OgnlContext,Object)
interface method.static String
OgnlRuntime.getChildSource
(OgnlContext context, Object target, Node child, boolean forceConversion) Attempts to get the java source string represented by the specific child expression via theJavaSource.toGetSourceString(OgnlContext,Object)
interface method.static Method
OgnlRuntime.getMethod
(OgnlContext context, Class target, String name, Node[] children, boolean includeStatic) void
Node.jjtAddChild
(Node n, int i) This method tells the node to add its argument to the node's list of children.void
SimpleNode.jjtAddChild
(Node n, int i) void
Node.jjtSetParent
(Node n) This pair of methods are used to inform the node of its parent.void
SimpleNode.jjtSetParent
(Node n) void
JJTOgnlParserState.openNodeScope
(Node n) void
void
OgnlContext.setCurrentNode
(Node value) -
Uses of Node in ognl.enhance
Methods in ognl.enhance with parameters of type NodeModifier and TypeMethodDescriptionExpressionCompiler.castExpression
(OgnlContext context, Node expression, String body) OgnlExpressionCompiler.castExpression
(OgnlContext context, Node expression, String body) Used primarily by AST types likeASTChain
wherefoo.bar.id
type references may need to be cast multiple times in order to properly resolve the members in a compiled statement.void
ExpressionCompiler.compileExpression
(OgnlContext context, Node expression, Object root) void
OgnlExpressionCompiler.compileExpression
(OgnlContext context, Node expression, Object root) The core method executed to compile a specific expression.protected String
ExpressionCompiler.generateGetter
(OgnlContext context, javassist.CtClass newClass, javassist.CtClass objClass, javassist.ClassPool pool, javassist.CtMethod valueGetter, Node expression, Object root) protected String
ExpressionCompiler.generateSetter
(OgnlContext context, javassist.CtClass newClass, javassist.CtClass objClass, javassist.ClassPool pool, javassist.CtMethod valueSetter, Node expression, Object root) static String
ExpressionCompiler.getRootExpression
(Node expression, Object root, OgnlContext context) Convenience method called by many different property/method resolving AST types to get a root expression resolving string for the given node.ExpressionCompiler.getRootExpressionClass
(Node rootNode, OgnlContext context) OgnlExpressionCompiler.getRootExpressionClass
(Node rootNode, OgnlContext context) For a given root object type returns the base class type to be used in root referenced expressions.void
ExpressionAccessor.setExpression
(Node expression) Used to set the original root expression node on instances where the compiled version has to fall back to interpreted syntax because of compilation failures.static boolean
ExpressionCompiler.shouldCast
(Node expression) Used byExpressionCompiler.getRootExpression(ognl.Node, Object, ognl.OgnlContext)
to determine if the expression needs to be cast at all.