|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sasl.language.placeholder.aop.resolver.TargetPlaceholderResolver
public class TargetPlaceholderResolver
The resolver offers some reflection information placeholders for the target
class and target method.
targetClassName{['qualification']}:
Returns the name of the target class, the optional parameter qualification
can have the values 'full' (= full qualified class name) or 'simple' (=simple
class name). The default is 'full'.
targetMethodName
Returns the name of the target method
targetMethodParameterTypes{[parameterNames][,[
'qualification'],['separator']]}:
Returns the names of the target method parameter types.
Optional parameters: parameterNames: If true than the names of the
parameters will be placed after the parameters types. If false not.
qualification: Can have the values 'full' (= full qualified class
name) or 'simple' (=simple class name). The default is 'simple'.
separator: If the target method has more than one parameter, than the
separator will be used to separate the parameters from each other. The
default separator is ', '.
targetMethodReturnType{['qualification']}:
Returns the name of the target return type class, the optional parameter
qualification can have the values 'full' (= full qualified class name) or
'simple' (=simple class name). The default is 'full'.
| Constructor Summary | |
|---|---|
TargetPlaceholderResolver()
|
|
| Method Summary | |
|---|---|
IParameterNameLoader |
getParameterNameLoader()
Returns the parameter name loader which will be used to load the parameter name symbol table of a target method. |
Set<String> |
getResolveablePlaceholders()
Returns a set of all placeholder procedures names that can be resolved by the placeholder. |
Object |
resolve(String placeholderName,
Object[] placeholderArguments,
IEnvironment environment)
Resolves the given placeholder under the passed interpreter environment. |
void |
setParameterNameLoader(IParameterNameLoader parameterNameLoader)
Set the parameter name loader which will be used to load the parameter name symbol table of a target method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TargetPlaceholderResolver()
| Method Detail |
|---|
public IParameterNameLoader getParameterNameLoader()
public void setParameterNameLoader(IParameterNameLoader parameterNameLoader)
parameterNameLoader - null or non nullpublic Set<String> getResolveablePlaceholders()
IPlaceholderResolver
getResolveablePlaceholders in interface IPlaceholderResolverIPlaceholderResolver.getResolveablePlaceholders()
public Object resolve(String placeholderName,
Object[] placeholderArguments,
IEnvironment environment)
throws ResolveException
IPlaceholderResolverIPlaceholderResolver.getResolveablePlaceholders()).
resolve in interface IPlaceholderResolverplaceholderName - non null.placeholderArguments - non null.environment - non null
ResolveException - if the placeholder could not get resolved, for example
because the parameters mismatch, or the resolution is only
successful for a specific target method execution phase.IPlaceholderResolver.resolve(java.lang.String,
java.lang.Object[],
net.sf.sasl.language.placeholder.aop.interpreter.IEnvironment)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||