Top Inners Fields Constructors Methods
org.joni.ast

public abstract Class Node

extends Object
implements NodeType
Class Inheritance
All Implemented Interfaces
org.joni.constants.internal.NodeType
Known Direct Subclasses
org.joni.ast.Node.TopNode, org.joni.ast.StateNode, org.joni.ast.StringNode, org.joni.ast.AnchorNode, org.joni.ast.AnyCharNode, org.joni.ast.CClassNode, org.joni.ast.CTypeNode, org.joni.ast.ListNode
Imports
org.joni.constants.internal.NodeType

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public Node
protected int

Constructor Summary

AccessConstructor and Description
pack-priv
Node(int type)

Method Summary

Modifier and TypeMethod and Description
public String
protected Node
public abstract String
public final int
public final int
public final boolean
public static Node.TopNode
newTop(Node root)

protected static String
pad(Object value, int level)

public void
protected void
protected abstract String
toString(int level)

public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

parentback to summary
public Node parent
typeback to summary
protected int type

Constructor Detail

Nodeback to summary
pack-priv Node(int type)

Method Detail

getAddressNameback to summary
public String getAddressName()
getChildback to summary
protected Node getChild()
getNameback to summary
public abstract String getName()
getTypeback to summary
public final int getType()
getType2Bitback to summary
public final int getType2Bit()
isSimpleback to summary
public final boolean isSimple()
newTopback to summary
public static Node.TopNode newTop(Node root)
padback to summary
protected static String pad(Object value, int level)
replaceWithback to summary
public void replaceWith(Node with)
setChildback to summary
protected void setChild(Node tgt)
toStringback to summary
protected abstract String toString(int level)
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
org.joni.ast back to summary

public final Class Node.TopNode

extends Node
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Node
Inherited from org.joni.ast.Node:
parenttype

Constructor Summary

AccessConstructor and Description
pack-priv
TopNode(Node root)

Method Summary

Modifier and TypeMethod and Description
public Node
public String
getName()

Implements abstract org.joni.ast.Node.getName.

public Node
public void
public String
toString(int level)

Implements abstract org.joni.ast.Node.toString.

Inherited from org.joni.ast.Node:
getAddressNamegetTypegetType2BitisSimplenewToppadreplaceWithtoString

Field Detail

rootback to summary
private Node root

Constructor Detail

TopNodeback to summary
pack-priv TopNode(Node root)

Method Detail

getChildback to summary
public Node getChild()

Overrides org.joni.ast.Node.getChild.

Annotations
@Override
getNameback to summary
public String getName()

Implements abstract org.joni.ast.Node.getName.

Annotations
@Override
getRootback to summary
public Node getRoot()
setChildback to summary
public void setChild(Node node)

Overrides org.joni.ast.Node.setChild.

Annotations
@Override
toStringback to summary
public String toString(int level)

Implements abstract org.joni.ast.Node.toString.

Annotations
@Override