net.sf.jse
Class StringFragment

java.lang.Object
  |
  +--net.sf.jse.Fragment
        |
        +--net.sf.jse.LeafFragment
              |
              +--net.sf.jse.LiteralFragment
                    |
                    +--net.sf.jse.StringFragment
All Implemented Interfaces:
java.lang.Cloneable

public class StringFragment
extends LiteralFragment

A literal fragment representing Java string literals

Version:
0.9, 03OCT00
Author:
Jonathan Bachrach, Keith Playford

Fields inherited from class net.sf.jse.Fragment
out
 
Constructor Summary
StringFragment(java.lang.String x)
           
StringFragment(antlr.Token t)
           
 
Method Summary
 Fragment compileTemplate(int depth)
          Template code generator -- probably should be compileTemplateElement
 java.lang.Object getValue()
          protocol for converting fragments back into Java literals
 
Methods inherited from class net.sf.jse.LiteralFragment
equals, generatePatternCode, toString
 
Methods inherited from class net.sf.jse.LeafFragment
getInsideFragments, getLine, getText, getToken, tokens
 
Methods inherited from class net.sf.jse.Fragment
capitalize, collectBoundVariables, compilePatternElement, compileQuestionExpression, die, expandMacros, expandTemplates, getChar, getCurrentLine, getFloat, getInt, getString, isTerminator, makeToken, makeToken, markMacros, setCurrentLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringFragment

public StringFragment(java.lang.String x)

StringFragment

public StringFragment(antlr.Token t)
Method Detail

getValue

public java.lang.Object getValue()
Description copied from class: Fragment
protocol for converting fragments back into Java literals
Overrides:
getValue in class LiteralFragment

compileTemplate

public Fragment compileTemplate(int depth)
Description copied from class: Fragment
Template code generator -- probably should be compileTemplateElement
Overrides:
compileTemplate in class Fragment
Following copied from class: net.sf.jse.Fragment
See Also:
Template.compileTemplate(int)