|
|||||||||||
| 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 | |
String |
currentException(Properties attributes)
Returns the current exception. |
void |
forAllExceptions(String template,
Properties attributes)
Iterates over all the exceptions for the current method. |
static String |
getMockClassFor(xjavadoc.XClass clazz)
Returns the fully classified name of the mock class from the specified class. |
protected static String |
getMockClassPattern()
Returns the pattern to be used for deciding the name of the class to be generated. |
protected String |
getTagParam(String tagName,
String paramName,
String defaultValue)
|
void |
ifThrowsException(String template,
Properties attributes)
Processes the text inside the tag if an exception is thrown by the current exception. |
String |
mockClass()
Returns the mock classname for the current class. |
String |
parameterTypeList(Properties attributes)
Iterates over all parameters in current method and returns a string containing the types of all those parameters. |
String |
uniqueMethodName(Properties attributes)
Returns a String with the current method using the supplied template as a boilerplate. |
String |
uniqueMethodNameAndParam(Properties attributes)
Returns a String with the current method concat with the param types using the supplied template as a boilerplate. |
String |
unwrap(Properties props)
Tag for unwrapping a simple type out of its object counterpart. |
String |
wrap(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 String getMockClassFor(xjavadoc.XClass clazz)
throws XDocletException
clazz - the class to generate a mock classname for.
XDocletExceptionprotected static String getMockClassPattern()
public String parameterTypeList(Properties attributes)
throws XDocletException
attributes - The attributes of the template tag
XDocletExceptionpublic String wrap(Properties props)
props - holds the parameters for the tag: name & type
public String unwrap(Properties props)
props - holds the parameters for the tag: name & type
public String mockClass()
throws XDocletException
XDocletExceptiongetMockClassFor(XClass)
public String uniqueMethodName(Properties attributes)
throws XDocletException
attributes - holds the parameters for the tag: template
XDocletException - not thrown.
public String uniqueMethodNameAndParam(Properties attributes)
throws XDocletException
attributes - holds the parameters for the tag: template
XDocletException - not thrown.
public void forAllExceptions(String template,
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 String currentException(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(String template,
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 String getTagParam(String tagName,
String paramName,
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 | ||||||||||