org.joni.ast
Class ConsAltNode
java.lang.Object
org.joni.ast.Node
org.joni.ast.ConsAltNode
- All Implemented Interfaces:
- NodeType
public final class ConsAltNode
- extends Node
| 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 |
car
public Node car
cdr
public ConsAltNode cdr
type
private int type
ConsAltNode
private ConsAltNode(Node car,
ConsAltNode cdr,
int type)
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(Set<Node> set,
WarnCallback warnings)
- Overrides:
verifyTree in class Node
setCar
public Node setCar(Node ca)
setCdr
public ConsAltNode setCdr(ConsAltNode cd)
getName
public String getName()
- Specified by:
getName in class Node
toString
public String toString(int level)
- Specified by:
toString in class Node
Copyright © 2013. All Rights Reserved.