pj
Class PJ.LitInfo

java.lang.Object
  extended by pj.PJ.Info
      extended by pj.PJ.LitInfo
All Implemented Interfaces:
Dump.Helper, Leaf
Direct Known Subclasses:
PJ.Lit1Info
Enclosing class:
PJ

protected class PJ.LitInfo
extends PJ.Info

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


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

Field Detail

lit

protected final String lit
body.

Constructor Detail

PJ.LitInfo

protected PJ.LitInfo(String lit)
create jay representation: _lit if alphanumeric, or _number.

See Also:
Rfc.Scanner

PJ.LitInfo

protected PJ.LitInfo(String lit,
                     String id)
intended for subclasses.

Method Detail

enter

public void enter(PrintWriter out)
create code to enter literal into screener table.


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)