|
|||||||||
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
Field Summary | |
protected static java.lang.String |
currentToken
The current token. |
protected static java.lang.String |
matchPattern
Template can use matchPattern as a place where they can put volatile variable. |
protected static java.util.StringTokenizer |
tagTokenizer
The StringTokenizer object doing the tokenization. |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
AbstractProgramElementTagsHandler()
|
Method Summary | |
protected java.lang.String |
checkForWrap(java.lang.String pText)
A utility method used by firstSentenceDescription to replace end of line by space. |
java.lang.String |
currentToken(java.util.Properties attributes)
Returns current token inside forAllClassTagTokens. |
protected java.lang.String |
exceptionList(java.util.Properties attributes,
int for_type)
|
protected void |
forAllMembers(java.lang.String template,
java.util.Properties attributes,
int for_type)
|
protected void |
forAllMemberTags(java.lang.String template,
java.util.Properties attributes,
int for_type,
java.lang.String resourceKey,
java.lang.String[] arguments)
|
protected void |
forAllMemberTagTokens(java.lang.String template,
java.util.Properties attributes,
int for_type)
|
static com.sun.javadoc.ClassDoc[] |
getAllClasses()
Utility method to get classes for iteration used by various methods. |
static java.lang.String |
getClassNameFor(com.sun.javadoc.ClassDoc clazz)
Returns the not-full-qualified name of the current class without the package name. |
protected com.sun.javadoc.ExecutableMemberDoc |
getExecutableMemberDocForMemberName(java.lang.String memberName,
boolean superclasses,
int for_type)
Searches for the ExecutableMemberDoc of the member with name methodName and returns it. |
protected com.sun.javadoc.ExecutableMemberDoc |
getExecutableMemberDocForMemberName(java.lang.String memberName,
int for_type)
|
static java.lang.String |
getFullClassNameFor(com.sun.javadoc.ClassDoc clazz)
Returns the full-qualified name of the current class with the package name. |
static java.lang.String |
getFullSuperclassNameFor(com.sun.javadoc.ClassDoc clazz)
Returns the full-qualified name of the superclass of the current class. |
protected char[] |
getIndentChars(java.util.Properties attributes)
A utility method to get the blank space characters used for indenting comments. |
protected static boolean |
hasExecutableMember(com.sun.javadoc.ClassDoc clazz,
java.lang.String executableMemberName,
java.lang.String[] parameters,
boolean setCurrentExecutableMember,
int for_type)
|
protected boolean |
ifHasTag_Impl(java.lang.String template,
java.util.Properties attributes,
int for_type)
A utility method used by ifHasClassTag/ifDoesntHaveClassTag and ifHasMethodTag/ifDoesntHaveMethodTag, return true if at least one tag exists with the specified name. |
boolean |
ifTagValueEquals_Impl(java.lang.String template,
java.util.Properties attributes,
int FOR_TYPE)
A utility method used by ifMethodTagValueEquals/ifMethodTagValueNotEquals and ifClassTagValueEquals/ifClassTagValueNotEquals, return true if the value of the tag/parameter equals with value. |
java.lang.String |
matchValue()
Returns the value of match variable. |
protected java.lang.String |
memberComment(java.util.Properties attributes,
int for_type)
|
void |
setMatchValue(java.lang.String template,
java.util.Properties attributes)
Sets the value of match variable. |
java.lang.String |
skipToken(java.util.Properties attributes)
Skips current token. |
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 |
Field Detail |
protected static java.lang.String currentToken
protected static java.util.StringTokenizer tagTokenizer
protected static java.lang.String matchPattern
Constructor Detail |
public AbstractProgramElementTagsHandler()
Method Detail |
public static java.lang.String getClassNameFor(com.sun.javadoc.ClassDoc clazz)
clazz
- Description of Parameterpublic static java.lang.String getFullClassNameFor(com.sun.javadoc.ClassDoc clazz)
clazz
- Description of Parameterpublic static java.lang.String getFullSuperclassNameFor(com.sun.javadoc.ClassDoc clazz)
clazz
- Description of Parameterpublic static com.sun.javadoc.ClassDoc[] getAllClasses()
protected static boolean hasExecutableMember(com.sun.javadoc.ClassDoc clazz, java.lang.String executableMemberName, java.lang.String[] parameters, boolean setCurrentExecutableMember, int for_type) throws XDocletException
public void setMatchValue(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 Exceptionpublic boolean ifTagValueEquals_Impl(java.lang.String template, java.util.Properties attributes, int FOR_TYPE) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagFOR_TYPE
- XDocletException
- Description of Exceptionpublic java.lang.String matchValue() throws XDocletException
XDocletException
- Description of Exceptionpublic java.lang.String currentToken(java.util.Properties attributes) throws XDocletException
attributes
- The attributes of the template tagXDocletException
- Description of Exceptionpublic java.lang.String skipToken(java.util.Properties attributes) throws XDocletException
attributes
- The attributes of the template tagXDocletException
- Description of Exceptionprotected com.sun.javadoc.ExecutableMemberDoc getExecutableMemberDocForMemberName(java.lang.String memberName, int for_type) throws XDocletException
protected com.sun.javadoc.ExecutableMemberDoc getExecutableMemberDocForMemberName(java.lang.String memberName, boolean superclasses, int for_type) throws XDocletException
superclasses
- Search superclasses.memberName
- for_type
- XDocletException
- protected char[] getIndentChars(java.util.Properties attributes)
attributes
- The attributes of the template tagMethodTagsHandler.methodComment(java.util.Properties)
,
ClassTagsHandler.classComment(java.util.Properties)
protected java.lang.String exceptionList(java.util.Properties attributes, int for_type) throws XDocletException
protected void forAllMemberTagTokens(java.lang.String template, java.util.Properties attributes, int for_type) throws XDocletException
protected void forAllMemberTags(java.lang.String template, java.util.Properties attributes, int for_type, java.lang.String resourceKey, java.lang.String[] arguments) throws XDocletException
protected java.lang.String memberComment(java.util.Properties attributes, int for_type) throws XDocletException
protected void forAllMembers(java.lang.String template, java.util.Properties attributes, int for_type) throws XDocletException
protected boolean ifHasTag_Impl(java.lang.String template, java.util.Properties attributes, int for_type) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tagfor_type
- XDocletException
- Description of Exceptionprotected java.lang.String checkForWrap(java.lang.String pText)
pText
- Description of Parameter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |