edu.rice.cs.drjava.project
Class ProjectFileParser.NumberVisitor
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ONLY
public static final ProjectFileParser.NumberVisitor ONLY
ProjectFileParser.NumberVisitor
private ProjectFileParser.NumberVisitor()
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>