|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.htmlparser.visitors.NodeVisitor
net.sourceforge.scopes.rewriters.NodeVisitorWithResult
public abstract class NodeVisitorWithResult
It is a node visitor that can add additional code and can output the final code after visiting sequence has finished.
Constructor Summary | |
---|---|
NodeVisitorWithResult()
Constructor. |
|
NodeVisitorWithResult(boolean recurseChildren)
Constructor. |
|
NodeVisitorWithResult(boolean recurseChildren,
boolean recurseSelf)
Constructor. |
Method Summary | |
---|---|
abstract java.io.PrintWriter |
getAfterVisitWriter()
Returns a writer that can be used to add code after the currently visited node. |
abstract java.io.PrintWriter |
getBeforeVisitWriter()
Returns a writer that can be used to add code before the currently visited node. |
abstract byte[] |
getResult()
Returns the result as an array of byte, encoded with the given character set. |
abstract void |
setCharset(java.lang.String charset)
Sets the character set to use. |
abstract void |
setContextPath(java.lang.String contextPath)
Sets the context path to refer to. |
Methods inherited from class org.htmlparser.visitors.NodeVisitor |
---|
beginParsing, finishedParsing, shouldRecurseChildren, shouldRecurseSelf, visitEndTag, visitRemarkNode, visitStringNode, visitTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodeVisitorWithResult()
public NodeVisitorWithResult(boolean recurseChildren, boolean recurseSelf)
recurseChildren
- true
to recurse children.recurseSelf
- true
to recurse itself.public NodeVisitorWithResult(boolean recurseChildren)
recurseChildren
- true
to recurse children.Method Detail |
---|
public abstract void setContextPath(java.lang.String contextPath)
ContextPathUser
setContextPath
in interface ContextPathUser
contextPath
- The context path.public abstract void setCharset(java.lang.String charset)
charset
- The character set.public abstract java.io.PrintWriter getBeforeVisitWriter()
public abstract java.io.PrintWriter getAfterVisitWriter()
public abstract byte[] getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |