org.joni.ast
Class Node

java.lang.Object
  extended by org.joni.ast.Node
All Implemented Interfaces:
NodeType
Direct Known Subclasses:
AnchorNode, AnyCharNode, CClassNode, ConsAltNode, CTypeNode, StateNode, StringNode

public abstract class Node
extends Object
implements NodeType


Field Summary
 Node parent
           
 
Fields inherited from interface org.joni.constants.NodeType
ALLOWED_IN_LB, ALT, ANCHOR, BIT_ALT, BIT_ANCHOR, BIT_BREF, BIT_CALL, BIT_CANY, BIT_CCLASS, BIT_CTYPE, BIT_ENCLOSE, BIT_LIST, BIT_QTFR, BIT_STR, BREF, CALL, CANY, CCLASS, CTYPE, ENCLOSE, LIST, QTFR, SIMPLE, STR
 
Constructor Summary
Node()
           
 
Method Summary
 String getAddressName()
           
protected  Node getChild()
           
abstract  String getName()
           
abstract  int getType()
           
 int getType2Bit()
           
 boolean isAllowedInLookBehind()
           
 boolean isInvalidQuantifier()
           
 boolean isSimple()
           
protected static String pad(Object value, int level)
           
protected  void setChild(Node tgt)
           
 void swap(Node with)
           
 String toString()
           
protected abstract  String toString(int level)
           
 void verifyTree(Set<Node> set, WarnCallback warnings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

public Node parent
Constructor Detail

Node

public Node()
Method Detail

getType

public abstract int getType()

getType2Bit

public final int getType2Bit()

setChild

protected void setChild(Node tgt)

getChild

protected Node getChild()

swap

public void swap(Node with)

verifyTree

public void verifyTree(Set<Node> set,
                       WarnCallback warnings)

getName

public abstract String getName()

toString

protected abstract String toString(int level)

getAddressName

public String getAddressName()

toString

public final String toString()
Overrides:
toString in class Object

pad

protected static String pad(Object value,
                            int level)

isInvalidQuantifier

public final boolean isInvalidQuantifier()

isAllowedInLookBehind

public final boolean isAllowedInLookBehind()

isSimple

public final boolean isSimple()


Copyright © 2012. All Rights Reserved.