Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Class SymTabASTIterator  view SymTabASTIterator download SymTabASTIterator.java

java.lang.Object
  extended bycom.puppycrawl.tools.checkstyle.checks.usage.transmogrify.SymTabASTIterator
All Implemented Interfaces:
java.util.Iterator

public class SymTabASTIterator
extends java.lang.Object
implements java.util.Iterator

An iterator for the children of a tree node.

Since:
1.0
Version:
1.0

Field Summary
private  SymTabAST _current
           
 
Constructor Summary
SymTabASTIterator(SymTabAST parent)
          Creates a new SymTabASTIterator.
 
Method Summary
 boolean hasNext()
          Whether the node has another child.
 java.lang.Object next()
          The next child node.
 SymTabAST nextChild()
          The next child node.
 void remove()
          Unsupported operation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_current

private SymTabAST _current
Constructor Detail

SymTabASTIterator

public SymTabASTIterator(SymTabAST parent)
Creates a new SymTabASTIterator.

Method Detail

hasNext

public boolean hasNext()
Whether the node has another child. (In other words, returns true if next would return an element rather than throwing an exception.)

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
The next child node.

Specified by:
next in interface java.util.Iterator

nextChild

public SymTabAST nextChild()
The next child node.


remove

public void remove()
Unsupported operation

Specified by:
remove in interface java.util.Iterator