Package org.apache.commons.ognl
Interface JavaSource
-
- All Known Subinterfaces:
Node
- All Known Implementing Classes:
ASTAdd
,ASTAnd
,ASTAssign
,ASTBitAnd
,ASTBitNegate
,ASTBitOr
,ASTChain
,ASTConst
,ASTCtor
,ASTDivide
,ASTEq
,ASTEval
,ASTGreater
,ASTGreaterEq
,ASTIn
,ASTInstanceof
,ASTKeyValue
,ASTLess
,ASTLessEq
,ASTList
,ASTMap
,ASTMethod
,ASTMultiply
,ASTNegate
,ASTNot
,ASTNotEq
,ASTNotIn
,ASTOr
,ASTProject
,ASTProperty
,ASTRemainder
,ASTRootVarRef
,ASTSelect
,ASTSelectFirst
,ASTSelectLast
,ASTSequence
,ASTShiftLeft
,ASTShiftRight
,ASTStaticField
,ASTStaticMethod
,ASTSubtract
,ASTTest
,ASTThisVarRef
,ASTUnsignedShiftRight
,ASTVarRef
,ASTXor
,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 aString
embedded with literal java statements.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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 forExpressionAccessor.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 forExpressionAccessor.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 forExpressionAccessor.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 forExpressionAccessor.get(OgnlContext, Object)
calls.- Returns:
- Literal java string representation of an object get.
-
-