org.codehaus.gmaven.runtime.support.stubgen.parser
Interface Node
- All Known Implementing Classes:
- NodeSupport
public interface Node
Abstraction of nodes of a parse tree.
- Version:
- $Id: Node.java 18 2009-07-16 09:39:40Z user57 $
- Author:
- Jason Dillon
text
String text()
isLeaf
boolean isLeaf()
firstChild
Node firstChild()
nextSibling
Node nextSibling()
line
int line()
column
int column()
is
boolean is(String name)
is
boolean is(String[] names)
ensure
void ensure(String name)
throws UnexpectedNodeException
- Throws:
UnexpectedNodeException
skip
Node skip(String name)
throws UnexpectedNodeException
- Throws:
UnexpectedNodeException
dump
void dump()
dump
void dump(String pad)
Copyright © 2006-2012 Codehaus. All Rights Reserved.