Package org.sonar.sslr.internal.vm
Class MachineStack
- java.lang.Object
-
- org.sonar.sslr.internal.vm.MachineStack
-
public class MachineStack extends Object
-
-
Constructor Summary
Constructors Constructor Description MachineStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
address()
int
calledAddress()
MachineStack
getOrCreateChild()
int
index()
boolean
isEmpty()
boolean
isIgnoreErrors()
boolean
isReturn()
int
leftRecursion()
Matcher
matcher()
MachineStack
parent()
void
setAddress(int address)
void
setCalledAddress(int calledAddress)
void
setIgnoreErrors(boolean ignoreErrors)
void
setIndex(int index)
void
setLeftRecursion(int leftRecursion)
void
setMatcher(Matcher matcher)
List<ParseNode>
subNodes()
-
-
-
Method Detail
-
parent
public MachineStack parent()
-
getOrCreateChild
public MachineStack getOrCreateChild()
-
isReturn
public boolean isReturn()
-
isEmpty
public boolean isEmpty()
- Returns:
- true, if this object denotes an empty stack
-
address
public int address()
-
setAddress
public void setAddress(int address)
-
index
public int index()
-
setIndex
public void setIndex(int index)
-
isIgnoreErrors
public boolean isIgnoreErrors()
-
setIgnoreErrors
public void setIgnoreErrors(boolean ignoreErrors)
-
matcher
public Matcher matcher()
-
leftRecursion
public int leftRecursion()
-
setLeftRecursion
public void setLeftRecursion(int leftRecursion)
-
calledAddress
public int calledAddress()
-
setCalledAddress
public void setCalledAddress(int calledAddress)
-
-