edu.rice.cs.drjava.project
Class ProjectFileParser.NumberVisitor

java.lang.Object
  extended by edu.rice.cs.drjava.project.ProjectFileParser.NumberVisitor
All Implemented Interfaces:
SExpVisitor<Integer>
Enclosing class:
ProjectFileParser

private static class ProjectFileParser.NumberVisitor
extends Object
implements SExpVisitor<Integer>

Retrieves the number of a node. The node should either be a list with its first element being a number atom, or a number atom itself.


Field Summary
static ProjectFileParser.NumberVisitor ONLY
           
 
Constructor Summary
private ProjectFileParser.NumberVisitor()
           
 
Method Summary
 Integer forBoolAtom(BoolAtom b)
           
 Integer forCons(Cons c)
           
 Integer forEmpty(Empty e)
           
 Integer forNumberAtom(NumberAtom n)
           
 Integer forTextAtom(TextAtom t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLY

public static final ProjectFileParser.NumberVisitor ONLY
Constructor Detail

ProjectFileParser.NumberVisitor

private ProjectFileParser.NumberVisitor()
Method Detail

forEmpty

public Integer forEmpty(Empty e)
Specified by:
forEmpty in interface SExpVisitor<Integer>

forCons

public Integer forCons(Cons c)
Specified by:
forCons in interface SExpVisitor<Integer>

forBoolAtom

public Integer forBoolAtom(BoolAtom b)
Specified by:
forBoolAtom in interface SExpVisitor<Integer>

forNumberAtom

public Integer forNumberAtom(NumberAtom n)
Specified by:
forNumberAtom in interface SExpVisitor<Integer>

forTextAtom

public Integer forTextAtom(TextAtom t)
Specified by:
forTextAtom in interface SExpVisitor<Integer>