org.joni.ast
Class ConsAltNode

java.lang.Object
  extended by org.joni.ast.Node
      extended by org.joni.ast.ConsAltNode
All Implemented Interfaces:
NodeType

public final class ConsAltNode
extends Node


Field Summary
 Node car
           
 ConsAltNode cdr
           
 
Fields inherited from class org.joni.ast.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
 
Method Summary
protected  Node getChild()
           
 java.lang.String getName()
           
 int getType()
           
static ConsAltNode listAdd(ConsAltNode list, Node x)
           
static ConsAltNode newAltNode(Node left, ConsAltNode right)
           
static ConsAltNode newListNode(Node left, ConsAltNode right)
           
 Node setCar(Node ca)
           
 ConsAltNode setCdr(ConsAltNode cd)
           
protected  void setChild(Node newChild)
           
 void swap(Node with)
           
 void toAltNode()
           
 void toListNode()
           
 java.lang.String toString(int level)
           
 void verifyTree(java.util.Set<Node> set, WarnCallback warnings)
           
 
Methods inherited from class org.joni.ast.Node
getAddressName, getType2Bit, isAllowedInLookBehind, isInvalidQuantifier, isSimple, pad, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

car

public Node car

cdr

public ConsAltNode cdr
Method Detail

newAltNode

public static ConsAltNode newAltNode(Node left,
                                     ConsAltNode right)

newListNode

public static ConsAltNode newListNode(Node left,
                                      ConsAltNode right)

listAdd

public static ConsAltNode listAdd(ConsAltNode list,
                                  Node x)

toListNode

public void toListNode()

toAltNode

public void toAltNode()

getType

public int getType()
Specified by:
getType in class Node

setChild

protected void setChild(Node newChild)
Overrides:
setChild in class Node

getChild

protected Node getChild()
Overrides:
getChild in class Node

swap

public void swap(Node with)
Overrides:
swap in class Node

verifyTree

public void verifyTree(java.util.Set<Node> set,
                       WarnCallback warnings)
Overrides:
verifyTree in class Node

setCar

public Node setCar(Node ca)

setCdr

public ConsAltNode setCdr(ConsAltNode cd)

getName

public java.lang.String getName()
Specified by:
getName in class Node

toString

public java.lang.String toString(int level)
Specified by:
toString in class Node


Copyright © 2008. All Rights Reserved.