public class TemplateMethod extends Object
Constructor and Description |
---|
TemplateMethod(String name,
Iterable<? extends TemplateParameter> parameters)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getDocumentation()
Returns the documentation for this method.
|
String |
getName()
Returns the name of the method.
|
TemplateParameter |
getParameterByName(String name)
Returns a parameter given its name.
|
Collection<TemplateParameter> |
getParameters()
Returns the parameters of this method.
|
boolean |
hasBody()
Indicates that this method needs a tag body.
|
void |
setDocumentation(String documentation)
Sets the documentation for this method.
|
String |
toString() |
public TemplateMethod(String name, Iterable<? extends TemplateParameter> parameters)
name
- The name of the method.parameters
- The map of parameters.public String getName()
public String getDocumentation()
public void setDocumentation(String documentation)
documentation
- The documentation.public Collection<TemplateParameter> getParameters()
public TemplateParameter getParameterByName(String name)
name
- The name of the parameter.public boolean hasBody()
true
if tag body is needed.Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.