cryptix.asn1.lang
public class SimpleNode extends Object implements ASNObject
jjTree (part of the
JavaCC tool), this Class acts as the concrete
implementation of a cryptix.asn1.lang.Node or
an cryptix.asn1.lang.ASNObject in a jjtree output
structure.
Copyright ©1997, 1998, 1999
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.1 $
| Field Summary | |
|---|---|
| protected ASNObject[] | children |
| protected Object | defaultValue
The Java object representing the default value for this
ASN.1 object if such value is defined in the specification. |
| protected int | id |
| protected String | name Name associated with this ASN.1 object. |
| protected boolean | optional True if the ASN.1 object is optional, false otherwise. |
| protected ASNObject | parent |
| protected Parser | parser |
| protected Tag | tag Tag associated with this ASN.1 object. |
| protected Object | value
Java object representing the current value of this ASN.1 object
when applicable. |
| Constructor Summary | |
|---|---|
| SimpleNode(int i) | |
| SimpleNode(Parser p, int i) | |
| Method Summary | |
|---|---|
| Object | accept(ParserVisitor visitor, Object data) |
| Object | childrenAccept(ParserVisitor visitor, Object data) Accepts the visitor. |
| void | dump() |
| void | dump(String prefix) |
| ASNObject | getChild(int i) |
| ASNObject[] | getChildren() |
| ASNObject | getComponent(String aName) |
| Object | getDefaultValue() |
| int | getID() |
| static SimpleNode | getInstance(Parser p, Tag tag)
Returns a new instance given a UNIVERSAL ASN.1 tag instance;
null otherwise. |
| String | getName() |
| ASNObject | getParent() |
| Parser | getParser() |
| Tag | getTag() |
| Object | getValue() |
| boolean | isOptional() |
| Object | jjtAccept(ParserVisitor visitor, Object data) Accepts the visitor. |
| void | jjtAddChild(Node n, int i) |
| void | jjtClose() |
| Node | jjtGetChild(int i) |
| int | jjtGetNumChildren() |
| Node | jjtGetParent() |
| void | jjtOpen() |
| void | jjtSetParent(Node n) |
| void | setDefaultValue(Object defaultValue) |
| void | setName(String name) Sets the name of this instance. |
| void | setOptional(boolean flag) |
| void | setTag(Tag tag) |
| void | setValue(Object value) |
| String | toString()
You can override these two methods in subclasses of SimpleNode
to customize the way the node appears when the tree is dumped.
|
| String | toString(String prefix) |
cryptix.asn1.lang.ASNObject.
See Also: ASNObject
Returns: The ID assigned to this ASN.1 Object by the Parser.
Returns: The name associated with this ASN.1 object.
Returns: The cryptix.asn1.lang.Parser handling
this ASN.1 object.