pj
Class PJ.SymInfo

java.lang.Object
  extended by pj.PJ.Info
      extended by pj.PJ.SymInfo
All Implemented Interfaces:
Dump.Helper, Leaf
Enclosing class:
PJ

protected class PJ.SymInfo
extends PJ.Info

represents a literal input string. PJ.Info.type would be set by PJ.IdInfo.


Field Summary
protected  String sym
          body.
 
Fields inherited from class pj.PJ.Info
id, represented, type
 
Constructor Summary
protected PJ.SymInfo(String sym)
          create jay representation: __sym if alphanumeric, or _number.
protected PJ.SymInfo(String sym, String id)
          intended for subclasses.
 
Method Summary
 String comment()
          descriptive comment.
 void dump(Dump sender, Class c, Object o)
           
 void lex(PrintWriter out)
          create JLex rule.
 void prolog(ArrayList out)
          create %token if required.
 
Methods inherited from class pj.PJ.Info
collect, name, setName, setType, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sym

protected final String sym
body.

Constructor Detail

PJ.SymInfo

protected PJ.SymInfo(String sym)
create jay representation: __sym if alphanumeric, or _number.

See Also:
Rfc.Scanner

PJ.SymInfo

protected PJ.SymInfo(String sym,
                     String id)
intended for subclasses.

Method Detail

lex

public void lex(PrintWriter out)
create JLex rule.

Specified by:
lex in interface Leaf
Overrides:
lex in class PJ.Info

prolog

public void prolog(ArrayList out)
create %token if required.


comment

public String comment()
Description copied from class: PJ.Info
descriptive comment.

Overrides:
comment in class PJ.Info

dump

public void dump(Dump sender,
                 Class c,
                 Object o)