ognl
Interface JavaSource

All Known Subinterfaces:
Node
All Known Implementing Classes:
ASTAnd, ASTChain, ASTConst, ASTCtor, ASTInstanceof, ASTList, ASTMethod, ASTOr, ASTProperty, ASTRootVarRef, ASTSequence, ASTStaticField, ASTStaticMethod, ASTThisVarRef, ASTVarRef, BooleanExpression, ComparisonExpression, ExpressionNode, NumericExpression, SimpleNode

public interface JavaSource

Defines an object that can return a representation of itself and any objects it contains in the form of a String embedded with literal java statements.

Author:
jkuhnert

Method Summary
 java.lang.String toGetSourceString(OgnlContext context, java.lang.Object target)
          Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed for ExpressionAccessor.get(OgnlContext, Object) calls.
 java.lang.String toSetSourceString(OgnlContext context, java.lang.Object target)
          Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed for ExpressionAccessor.get(OgnlContext, Object) calls.
 

Method Detail

toGetSourceString

java.lang.String toGetSourceString(OgnlContext context,
                                   java.lang.Object target)
Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed for ExpressionAccessor.get(OgnlContext, Object) calls.

Returns:
Literal java string representation of an object get.

toSetSourceString

java.lang.String toSetSourceString(OgnlContext context,
                                   java.lang.Object target)
Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed for ExpressionAccessor.get(OgnlContext, Object) calls.

Returns:
Literal java string representation of an object get.

OGNL Project Page