org.codehaus.gmaven.runtime.support.stubgen.parser
Class NodeSupport
java.lang.Object
org.codehaus.gmaven.runtime.support.stubgen.parser.NodeSupport
- All Implemented Interfaces:
- Node
public abstract class NodeSupport
- extends Object
- implements Node
Support for Node
implementations.
- Version:
- $Id: NodeSupport.java 18 2009-07-16 09:39:40Z user57 $
- Author:
- Jason Dillon
NodeSupport
public NodeSupport()
type
protected abstract int type()
tokens
protected abstract Tokens tokens()
name
protected abstract String name()
childCount
protected abstract int childCount()
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface Node
toString
public String toString()
- Overrides:
toString
in class Object
dump
public void dump(String pad)
- Specified by:
dump
in interface Node
dump
public void dump()
- Specified by:
dump
in interface Node
is
public boolean is(String name)
- Specified by:
is
in interface Node
is
public boolean is(String[] names)
- Specified by:
is
in interface Node
ensure
public void ensure(String name)
throws UnexpectedNodeException
- Specified by:
ensure
in interface Node
- Throws:
UnexpectedNodeException
skip
public Node skip(String name)
- Specified by:
skip
in interface Node
Copyright © 2006-2012 Codehaus. All Rights Reserved.