| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.runtime.nodes.Node
orc.runtime.nodes.WithLocation
public class WithLocation
Annotates a node with a source location which is tracked by the token (for use in tracing and error messages). I opted to introduce a new node rather than add this capability for existing nodes because that makes it easier to omit this information in an "optimized" build.
| Constructor Summary | |
|---|---|
| WithLocation(Node next,
             SourceLocation location) | |
| Method Summary | |
|---|---|
|  SourceLocation | getSourceLocation() | 
|  void | process(Token t)The process method is the fundamental operation in the execution engine. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public WithLocation(Node next,
                    SourceLocation location)
| Method Detail | 
|---|
public void process(Token t)
Node
process in class Nodet - input token being processedpublic SourceLocation getSourceLocation()
getSourceLocation in interface Located| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||