|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.directive.ArgsHolder
ArgsHolder is a container for directive arguments. The parser creates and populates the ArgsHolder based on the contents of the directive descriptor. The directive, in the build() method, will call the getArg() methods to retrieve the arguments and build the directive.
Constructor Summary | |
ArgsHolder(Directive.ArgDescriptor[] args)
|
Method Summary | |
java.lang.Object |
getArg(int id)
Retrieve the argument whose id is the specified id. |
java.lang.Object |
getArg(int id,
BuildContext bc)
Retrieve the argument whose id is the specified id, and if it is a Builder, build it with the specified build context. |
int |
getArgCount()
How many arguments does this ArgsHolder have? |
java.lang.Object |
getExactArg(int idx)
Get the argument at the specified index . |
void |
setArg(int id,
java.lang.Object o)
Set the argument whose id is the specified id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArgsHolder(Directive.ArgDescriptor[] args)
Method Detail |
public java.lang.Object getExactArg(int idx) throws BuildException
index
. This is different than getting
an argument by it's id
getExactArg
in interface DirectiveArgs
BuildException
public final int getArgCount()
getArgCount
in interface DirectiveArgs
public final java.lang.Object getArg(int id) throws BuildException
getArg
in interface DirectiveArgs
BuildException
public final java.lang.Object getArg(int id, BuildContext bc) throws BuildException
getArg
in interface DirectiveArgs
BuildException
public final void setArg(int id, java.lang.Object o) throws BuildException
setArg
in interface DirectiveArgs
BuildException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |