|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.sourceModel.TagReplace
Title: Description: Copyright: Copyright (c) 2001 Company:
Nested Class Summary | |
static class |
TagReplace.Test
Unit tests for TagReplace |
Field Summary | |
static java.lang.String |
TAG_MARK
|
Constructor Summary | |
TagReplace()
Constructor for the TagReplace object |
|
TagReplace(java.lang.String body,
JavaClassDef classDef,
TagTable tagTable)
Constructor for the TagReplace object |
Method Summary | |
protected java.util.Enumeration |
getExpressionValue(TagElement tag)
Gets the ExpressionValue attribute of the TagReplace object |
protected java.util.Enumeration |
getOWValue(TagElement tag)
Gets the OWValue attribute of the TagReplace object |
protected java.util.Enumeration |
getTagValue(TagElement tag)
Gets the TagValue attribute of the TagReplace object |
protected void |
init()
|
static void |
main(java.lang.String[] args)
args[0] TemplateName args[1] TemplateFile args[2] SourceFile |
protected java.lang.String |
replaceAllTag()
|
protected java.lang.String |
replaceTagWith(java.lang.String onePass,
int i,
java.lang.String value)
used to replace an tag with a value. |
protected void |
setAllTagValues()
Sets the AllTagValues attribute of the TagReplace object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String TAG_MARK
Constructor Detail |
public TagReplace()
public TagReplace(java.lang.String body, JavaClassDef classDef, TagTable tagTable)
body
- classDef
- tagTable
- Method Detail |
public static void main(java.lang.String[] args)
args
- The command line argumentsprotected void setAllTagValues()
protected java.util.Enumeration getTagValue(TagElement tag)
tag
-
protected java.util.Enumeration getOWValue(TagElement tag)
tag
-
protected java.util.Enumeration getExpressionValue(TagElement tag)
tag
-
protected void init() throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
protected java.lang.String replaceAllTag()
protected java.lang.String replaceTagWith(java.lang.String onePass, int i, java.lang.String value)
onePass
- String The current String need to be processedi
- int The current offset in the String onePassvalue
- String The value should replace the tag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |