|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.ant.ReflectTaskVisitorBase
abstract class ReflectTaskVisitorBase
A base class using reflectivity in order to invoke a method depending on the visited wrapper.
| Constructor Summary | |
|---|---|
ReflectTaskVisitorBase()
|
|
| Method Summary | |
|---|---|
abstract void |
defaultVisit(org.apache.tools.ant.RuntimeConfigurable wrapper)
|
java.lang.String |
getAliasForTask(java.lang.String taskName)
A default implementation returning the task name. |
void |
visit(org.apache.tools.ant.RuntimeConfigurable wrapper)
Invoke the right method depending on the wrapper's element tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ReflectTaskVisitorBase()
| Method Detail |
|---|
public void visit(org.apache.tools.ant.RuntimeConfigurable wrapper)
throws GrandException
getAliasForTask(String)to find out if there is an
alias for this task,reflectVisit_task_name,defaultVisit(RuntimeConfigurable)fallback method.
visit in interface TaskVisitorwrapper - Wrapper to visit.
GrandException - if something goes wrong.TaskVisitor.visit(org.apache.tools.ant.RuntimeConfigurable)
public abstract void defaultVisit(org.apache.tools.ant.RuntimeConfigurable wrapper)
throws GrandException
GrandExceptionpublic java.lang.String getAliasForTask(java.lang.String taskName)
taskName -
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||