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

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

private static class ProjectFileParser.NameVisitor
extends Object
implements SExpVisitor<String>

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


Field Summary
static ProjectFileParser.NameVisitor ONLY
           
 
Constructor Summary
private ProjectFileParser.NameVisitor()
           
 
Method Summary
 String forBoolAtom(BoolAtom b)
           
 String forCons(Cons c)
           
 String forEmpty(Empty e)
           
 String forNumberAtom(NumberAtom n)
           
 String 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.NameVisitor ONLY
Constructor Detail

ProjectFileParser.NameVisitor

private ProjectFileParser.NameVisitor()
Method Detail

forEmpty

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

forCons

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

forBoolAtom

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

forNumberAtom

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

forTextAtom

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