public class BtrPlaceTree
extends org.antlr.runtime.tree.CommonTree
| Modifier and Type | Field and Description |
|---|---|
protected ErrorReporter |
errors
All the errors to report.
|
| Constructor and Description |
|---|
BtrPlaceTree(org.antlr.runtime.Token t,
ErrorReporter errs)
Make a new tree.
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(org.antlr.runtime.Token t,
String msg)
Add an error message related to a given token
|
BtrPlaceTree |
getChild(int i) |
BtrpOperand |
go(BtrPlaceTree parent)
Parse the root of the tree.
|
IgnorableOperand |
ignoreError(Exception e)
Report an error from an exception for the current token
|
IgnorableOperand |
ignoreError(String msg)
Report an error for the current token and generate a content to ignore.
|
IgnorableOperand |
ignoreError(org.antlr.runtime.Token t,
String msg)
Add an error message to a given error
|
IgnorableOperand |
ignoreErrors(ErrorReporter err)
Add all the error messages included in a reporter.
|
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toStringaddChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTreeprotected final ErrorReporter errors
public BtrPlaceTree(org.antlr.runtime.Token t,
ErrorReporter errs)
t - the token to handle. The root of this treeerrs - the errors to reportpublic BtrpOperand go(BtrPlaceTree parent)
parent - the parent of the rootpublic IgnorableOperand ignoreError(String msg)
msg - the error messagepublic IgnorableOperand ignoreError(Exception e)
e - the exceptionpublic IgnorableOperand ignoreErrors(ErrorReporter err)
err - the error reporterIgnorableOperand to indicate to skip the operandpublic IgnorableOperand ignoreError(org.antlr.runtime.Token t, String msg)
t - the token that points to the errormsg - the error messageIgnorableOperand to indicate to skip the operandpublic void append(org.antlr.runtime.Token t,
String msg)
t - the token that points to the errormsg - the error messagepublic BtrPlaceTree getChild(int i)
getChild in interface org.antlr.runtime.tree.TreegetChild in class org.antlr.runtime.tree.BaseTreeCopyright © 2016 University of Nice-Sophia Antipolis. All Rights Reserved.