java.lang.Object | |
↳ | org.apache.commons.betwixt.expression.MethodExpression |
MethodExpression
evaluates a method on the current bean context.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NULL_ARGUMENTS | null arguments | ||||||||||
NULL_CLASSES | null classes |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Base constructor
| |||||||||||
Convenience constructor sets method property
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Evaluate by calling the read method on the current bean
| |||||||||||
Gets the method used to evaluate this expression.
| |||||||||||
Sets the method used to evaluate this expression
| |||||||||||
Returns something useful for logging.
| |||||||||||
Do nothing.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Tries to find an alternate method for the given type using interfaces
which gets around the problem of inner classes,
such as on Map.Entry implementations.
| |||||||||||
Allows derived objects to create arguments for the method call
| |||||||||||
Log error to context's logger. | |||||||||||
Log error to context's logger. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.apache.commons.betwixt.expression.Expression
|
Base constructor
Convenience constructor sets method property
method | the Method whose return value when invoked on the bean will the value of this expression |
---|
Evaluate by calling the read method on the current bean
context | the context against which this expression will be evaluated |
---|
Gets the method used to evaluate this expression.
Sets the method used to evaluate this expression
method | method whose value (when invoked against the context's bean) will be used to evaluate this expression |
---|
Returns something useful for logging.
Do nothing.
context | update this Context |
---|---|
newValue | the new value for this expression |
Tries to find an alternate method for the given type using interfaces which gets around the problem of inner classes, such as on Map.Entry implementations.
type | the Class whose methods are to be searched |
---|---|
method | the Method for which an alternative is to be search for |
Allows derived objects to create arguments for the method call
Log error to context's logger.
Allows derived objects to handle exceptions differently.
context | the Context being evaluated when the exception occured |
---|---|
e | the exception to handle |
Log error to context's logger.
Allows derived objects to handle exceptions differently.
context | the Context being evaluated when the exception occured |
---|---|
e | the exception to handle |