|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xdoclet.template.TemplateTagHandler
|
+--xdoclet.XDocletTagSupport
|
+--xdoclet.tags.AbstractProgramElementTagsHandler
|
+--xdoclet.tags.ConstructorTagsHandler
| Fields inherited from class xdoclet.tags.AbstractProgramElementTagsHandler |
currentToken, matchPattern, tagTokenizer |
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
ConstructorTagsHandler()
|
|
| Method Summary | |
java.lang.String |
constructorComment(java.util.Properties attributes)
The comment for the current constructor. |
java.lang.String |
constructorName(java.util.Properties attributes)
Returns the name of the current constructor. |
java.lang.String |
constructorTagValue(java.util.Properties attributes)
Iterates over all constructor tags with the specified tagName for the current constructor probably inside of a forAllConstructorTags body. |
java.lang.String |
currentConstructorName()
Returns the current constructor name. |
java.lang.String |
exceptionList(java.util.Properties attributes)
Iterates over all exceptions thrown by the current constructor and returns a string containing definition of all those exceptions. |
void |
executeAndRestoreConstructor(java.lang.String template,
java.util.Properties attributes)
Evaluate the current block, and then restore the current constructor before continuing. |
java.lang.String |
firstSentenceDescriptionOfCurrentConstructor()
Return standard javadoc of current constructor. |
void |
forAllClassConstructors(java.lang.String template,
java.util.Properties attributes)
Loops through all constructors for all classes after first sorting all the constructors. |
void |
forAllConstructors(java.lang.String template,
java.util.Properties attributes)
Iterates over all constructors of current class and evaluates the body of the tag for each constructor. |
void |
forAllConstructorTags(java.lang.String template,
java.util.Properties attributes)
Iterates over all tags of current constructor and evaluates the body of the tag for each constructor. |
void |
forAllConstructorTagTokens(java.lang.String template,
java.util.Properties attributes)
Iterates over all tokens in current constructor tag with the name tagName and evaluates the body for every token. |
protected static boolean |
hasConstructor(com.sun.javadoc.ClassDoc clazz,
java.lang.String constructorName,
java.lang.String[] parameters,
boolean setCurrentConstructor)
Returns true if a constructor with the specified parameters is found in the class clazz. |
void |
ifConstructorTagValueEquals(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if value for the constructor tag equals the specified value. |
void |
ifConstructorTagValueNotEquals(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if value for the constructor tag not equals the specified value. |
void |
ifDoesntHaveConstructor(java.lang.String template,
java.util.Properties attributes)
Evaluate the body if current class doesn't have a constructor with the specified name+parameters. |
void |
ifDoesntHaveConstructorTag(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if current constructor doesn't have at least one tag with the specified name. |
void |
ifHasConstructor(java.lang.String template,
java.util.Properties attributes)
Evaluate the body if current class has a constructor with the specified name+parameters. |
void |
ifHasConstructorTag(java.lang.String template,
java.util.Properties attributes)
Evaluates the body if current constructor has at least one tag with the specified name. |
void |
setCurrentConstructor(java.lang.String template,
java.util.Properties attributes)
Evaluate the body if current class has a constructor with the specified name+parameters. |
| Methods inherited from class xdoclet.template.TemplateTagHandler |
generate, getContext, getEngine, getParser, setContext, setEngine, setParser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstructorTagsHandler()
| Method Detail |
protected static boolean hasConstructor(com.sun.javadoc.ClassDoc clazz,
java.lang.String constructorName,
java.lang.String[] parameters,
boolean setCurrentConstructor)
throws XDocletException
clazz - Description of ParameterconstructorName - Description of Parameterparameters - Description of ParametersetCurrentConstructor - XDocletException -
public void setCurrentConstructor(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of ExceptionifHasConstructor(java.lang.String,java.util.Properties)
public java.lang.String constructorComment(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of ExceptionClassTagsHandler.classComment(java.util.Properties)
public java.lang.String exceptionList(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of Exception
public void forAllClassConstructors(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void forAllConstructors(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void ifDoesntHaveConstructorTag(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void ifHasConstructorTag(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void executeAndRestoreConstructor(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void ifConstructorTagValueEquals(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void ifConstructorTagValueNotEquals(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public java.lang.String constructorTagValue(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of Exception
public void forAllConstructorTags(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public void forAllConstructorTagTokens(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of Exception
public java.lang.String firstSentenceDescriptionOfCurrentConstructor()
throws XDocletException
XDocletException - Description of Exception
public java.lang.String constructorName(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of Exception
public java.lang.String currentConstructorName()
throws XDocletException
XDocletException - Description of Exception
public void ifHasConstructor(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of ExceptionifDoesntHaveConstructor(java.lang.String,java.util.Properties)
public void ifDoesntHaveConstructor(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of ExceptionifHasConstructor(java.lang.String,java.util.Properties)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||