Package org.apache.commons.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 JavaSourceDefines an object that can return a representation of itself and any objects it contains in the form of aStringembedded with literal java statements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtoGetSourceString(OgnlContext context, 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 forExpressionAccessor.get(OgnlContext, Object)calls.StringtoSetSourceString(OgnlContext context, 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 forExpressionAccessor.get(OgnlContext, Object)calls.
-
-
-
Method Detail
-
toGetSourceString
String toGetSourceString(OgnlContext context, 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 forExpressionAccessor.get(OgnlContext, Object)calls.- Returns:
- Literal java string representation of an object get.
-
toSetSourceString
String toSetSourceString(OgnlContext context, 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 forExpressionAccessor.get(OgnlContext, Object)calls.- Returns:
- Literal java string representation of an object get.
-
-