|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdoclet.template.TemplateTagHandler
xdoclet.XDocletTagSupport
xdoclet.tagshandler.AbstractProgramElementTagsHandler
xdoclet.tagshandler.ParameterTagsHandler
xdoclet.modules.mockobjects.MockObjectTagsHandler
Tagshandler for mockobject.
Field Summary |
Fields inherited from class xdoclet.tagshandler.ParameterTagsHandler |
currentMethodParameter, currentMethodParamTag, currentName |
Fields inherited from class xdoclet.tagshandler.AbstractProgramElementTagsHandler |
currentToken, matchPattern, tagTokenizer |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
MockObjectTagsHandler()
|
Method Summary | |
java.lang.String |
currentException(java.util.Properties attributes)
Returns the current exception. |
void |
forAllExceptions(java.lang.String template,
java.util.Properties attributes)
Iterates over all the exceptions for the current method. |
static java.lang.String |
getMockClassFor(xjavadoc.XClass clazz)
Returns the fully classified name of the mock class from the specified class. |
protected static java.lang.String |
getMockClassPattern()
Returns the pattern to be used for deciding the name of the class to be generated. |
protected java.lang.String |
getTagParam(java.lang.String tagName,
java.lang.String paramName,
java.lang.String defaultValue)
|
void |
ifThrowsException(java.lang.String template,
java.util.Properties attributes)
Processes the text inside the tag if an exception is thrown by the current exception. |
java.lang.String |
mockClass()
Returns the mock classname for the current class. |
java.lang.String |
parameterTypeList(java.util.Properties attributes)
Iterates over all parameters in current method and returns a string containing the types of all those parameters. |
java.lang.String |
uniqueMethodName(java.util.Properties attributes)
Returns a String with the current method using the supplied template as a boilerplate. |
java.lang.String |
uniqueMethodNameAndParam(java.util.Properties attributes)
Returns a String with the current method concat with the param types using the supplied template as a boilerplate. |
java.lang.String |
unwrap(java.util.Properties props)
Tag for unwrapping a simple type out of its object counterpart. |
java.lang.String |
wrap(java.util.Properties props)
Tag for wrapping a simple type in its object counterpart. |
Methods inherited from class xdoclet.tagshandler.ParameterTagsHandler |
currentName, forAllConstructorParams, forAllMethodParams, forAllParameterTypes, getMethodParamTypeFor, ifHasParams, methodParamDescription, methodParamName, methodParamType, parameterList |
Methods inherited from class xdoclet.template.TemplateTagHandler |
getXJavaDoc, setXJavaDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MockObjectTagsHandler()
Method Detail |
public static java.lang.String getMockClassFor(xjavadoc.XClass clazz) throws XDocletException
clazz
- the class to generate a mock classname for.
XDocletException
protected static java.lang.String getMockClassPattern()
public java.lang.String parameterTypeList(java.util.Properties attributes) throws XDocletException
attributes
- The attributes of the template tag
XDocletException
public java.lang.String wrap(java.util.Properties props)
props
- holds the parameters for the tag: name & type
public java.lang.String unwrap(java.util.Properties props)
props
- holds the parameters for the tag: name & type
public java.lang.String mockClass() throws XDocletException
XDocletException
getMockClassFor(XClass)
public java.lang.String uniqueMethodName(java.util.Properties attributes) throws XDocletException
attributes
- holds the parameters for the tag: template
XDocletException
- not thrown.public java.lang.String uniqueMethodNameAndParam(java.util.Properties attributes) throws XDocletException
attributes
- holds the parameters for the tag: template
XDocletException
- not thrown.public void forAllExceptions(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- the text inside the tag that should be processed.attributes
- the parameters for the tag; not used.
XDocletException
- not thrown by our code; might be thrown from generate
.public java.lang.String currentException(java.util.Properties attributes) throws XDocletException
attributes
- the parameters for the tag; not used.
XDocletException
- not thrown by our code; might be thrown from getCurrentClass
.public void ifThrowsException(java.lang.String template, java.util.Properties attributes) throws XDocletException
template
- the text inside the tag that should be processed.attributes
- the parameters for the tag; not used.
XDocletException
- not thrown by our code; might be thrown from generate
.protected java.lang.String getTagParam(java.lang.String tagName, java.lang.String paramName, java.lang.String defaultValue) throws XDocletException
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |