|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.asn1.ber.DeterminateLengthVisitor
A visitor used to transform a TLV tuple tree by altering tuples to use determinate length encodings rather than the indeterminate form.
Field Summary | |
private VisitorMonitor |
monitor
the visitor monitor called when notible events occur |
Constructor Summary | |
DeterminateLengthVisitor()
|
Method Summary | |
boolean |
canVisit(TupleNode node)
Checks to see if a node can be visited. |
java.util.ArrayList |
getOrder(TupleNode node,
java.util.ArrayList children)
Get the array of children to visit sequentially to determine the order of child visitations. |
boolean |
isPrefix()
Determines whether the visitation order is prefix or postfix. |
void |
setMonitor(VisitorMonitor monitor)
Sets the monitoring which recieves callbacks of notable events from this visitor. |
void |
visit(TupleNode node)
Visits a tree of tuple nodes using a specific visitation order. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private VisitorMonitor monitor
Constructor Detail |
public DeterminateLengthVisitor()
Method Detail |
public void visit(TupleNode node)
visit
in interface TupleNodeVisitor
node
- the node to visitpublic boolean canVisit(TupleNode node)
canVisit
in interface TupleNodeVisitor
node
- the node to be visited
public boolean isPrefix()
isPrefix
in interface TupleNodeVisitor
public java.util.ArrayList getOrder(TupleNode node, java.util.ArrayList children)
getOrder
in interface TupleNodeVisitor
node
- the parent branch nodechildren
- the child node array
public void setMonitor(VisitorMonitor monitor)
TupleNodeVisitor
setMonitor
in interface TupleNodeVisitor
monitor
- the monitor instance for the visitor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |