|
|||||||||
| 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.TypeTagsHandler
Simple tag support class.
| Field Summary | |
static int |
TYPE_CONCRETE_TYPE
Used by isOfType. |
static int |
TYPE_HIERARCHY
Used by isOfType. |
static int |
TYPE_SUPERCLASS
Used by isOfType. |
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
TypeTagsHandler()
|
|
| Method Summary | |
static int |
extractExtentType(java.lang.String extent_str)
Return the integer constact based on the extent_str. |
void |
ifIsNotOfType(java.lang.String template,
java.util.Properties attributes)
Evaluate the body block if the entity is not of the specified type. |
void |
ifIsNotPrimitive(java.lang.String template,
java.util.Properties attributes)
Evaluate the body block if the value is not of a primitive type. |
void |
ifIsNotPrimitiveOrString(java.lang.String template,
java.util.Properties attributes)
Evaluate the body block if the value is of a primitive type or String. |
protected void |
ifIsOfType_Impl(java.lang.String template,
java.util.Properties attributes,
boolean condition)
Implementation of ifIsOfType and ifIsNotOfType tags. |
void |
ifIsOfType(java.lang.String template,
java.util.Properties attributes)
Evaluate the body block if the entity is of the specified type. |
void |
ifIsPrimitive(java.lang.String template,
java.util.Properties attributes)
Evaluate the body block if the value is of a primitive type. |
void |
ifIsPrimitiveOrString(java.lang.String template,
java.util.Properties attributes)
Evaluate the body block if the value is of a primitive type or String. |
static boolean |
isInTypeList(java.lang.String derived_from,
java.lang.String class_name)
|
static boolean |
isOfType(com.sun.javadoc.Type cur_type,
java.lang.String type,
int extent)
Returns true if cur_class is of type type. |
static boolean |
isPrimitiveType(java.lang.String name)
Returns true if name is a primitive type, in that case name contains the string "int"/"float"/etc. |
| 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 |
public static final int TYPE_CONCRETE_TYPE
public static final int TYPE_SUPERCLASS
public static final int TYPE_HIERARCHY
| Constructor Detail |
public TypeTagsHandler()
| Method Detail |
public static boolean isPrimitiveType(java.lang.String name)
name - Description of Parameter
public static boolean isOfType(com.sun.javadoc.Type cur_type,
java.lang.String type,
int extent)
extent - Can be one of TYPE_CONCRETE_TYPE, TYPE_SUPERCALASS or
TYPE_HIERARCHYtype - Description of Parametercur_type - Description of Parameter
public static boolean isInTypeList(java.lang.String derived_from,
java.lang.String class_name)
public static int extractExtentType(java.lang.String extent_str)
extent_str - Description of ParameterClassTagsHandler.forAllClasses(java.lang.String,java.util.Properties),
ifIsOfType_Impl(java.lang.String,java.util.Properties,boolean),
TYPE_HIERARCHY,
TYPE_CONCRETE_TYPE,
TYPE_SUPERCLASS
public void ifIsPrimitive(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 ExceptionifIsNotPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsPrimitiveOrString(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 ExceptionifIsNotPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsNotPrimitiveOrString(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 ExceptionifIsNotPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsNotPrimitive(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 ExceptionifIsPrimitive(java.lang.String,java.util.Properties),
isPrimitiveType(java.lang.String)
public void ifIsNotOfType(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 ExceptionifIsOfType(java.lang.String,java.util.Properties)
public void ifIsOfType(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 ExceptionifIsNotOfType(java.lang.String,java.util.Properties)
protected void ifIsOfType_Impl(java.lang.String template,
java.util.Properties attributes,
boolean condition)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagcondition - Description of ParameterXDocletException - Description of ExceptionifIsOfType(java.lang.String,java.util.Properties),
ifIsNotOfType(java.lang.String,java.util.Properties)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||