|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEnvironment
Interfaces defines methods that an interpreter offers placeholders on calling them.
Method Summary | |
---|---|
Map<String,Object> |
getEnvironmentProperties()
Returns a map of shared properties of the interpreter environment. |
Object |
getEnvironmentProperty(String key)
Returns a shared object to the over given key that is offered by the interpreter environment. |
TargetMethodExecutionPhase |
getExecutionPhase()
Returns the execution phase of the target method to which this environment belongs. |
IInterpreter |
getInterpreter()
Returns the interpreter which interprets a placeholder script for the current environment. |
Throwable |
getOccurredException()
Returns the occurred exception of the target method invocation. |
Object[] |
getTargetArguments()
Returns the target arguments of a method invocation. |
Method |
getTargetMethod()
Returns the target method of a method invocation. |
Object |
getTargetObject()
Returns the target object of a method invocation. |
Object |
getTargetReturnValue()
Returns the target return value of a method invocation. |
void |
setEnvironmentProperty(String key,
Object value)
Sets a shared object to the over given key that is offered by the interpreter environment. |
Method Detail |
---|
Object getTargetObject()
Method getTargetMethod()
Object[] getTargetArguments()
Object getTargetReturnValue()
getExecutionPhase()
does not return
INVOCATION
than it will return definitely null.
Throwable getOccurredException()
getExecutionPhase()
returns
EXCEPTION
.
TargetMethodExecutionPhase getExecutionPhase()
IInterpreter getInterpreter()
Object getEnvironmentProperty(String key)
key
- null or non null
void setEnvironmentProperty(String key, Object value)
key
- null or non null.value
- null or non null.Map<String,Object> getEnvironmentProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |