net.sf.jse
Class PunctuationFragment

java.lang.Object
  |
  +--net.sf.jse.Fragment
        |
        +--net.sf.jse.LeafFragment
              |
              +--net.sf.jse.PunctuationFragment
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
DotFragment, QuestionFragment, SeparatorFragment

public class PunctuationFragment
extends LeafFragment

A leaf fragment representing Java punctuation tokens

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

Fields inherited from class net.sf.jse.Fragment
out
 
Constructor Summary
PunctuationFragment(java.lang.String s)
           
PunctuationFragment(antlr.Token t)
           
 
Method Summary
 Fragment compileSpecialTemplate(int depth)
           
 Fragment compileTemplate(int depth)
          Template code generator -- probably should be compileTemplateElement
 Expansion generatePatternCode(IdentifierFragment nowVar, IdentifierFragment nextVar)
          Pattern matching code generator
 java.lang.String 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, getValue, isTerminator, makeToken, makeToken, markMacros, setCurrentLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PunctuationFragment

public PunctuationFragment(java.lang.String s)

PunctuationFragment

public PunctuationFragment(antlr.Token t)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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)

compileSpecialTemplate

public Fragment compileSpecialTemplate(int depth)

generatePatternCode

public Expansion generatePatternCode(IdentifierFragment nowVar,
                                     IdentifierFragment nextVar)
Description copied from class: Fragment
Pattern matching code generator
Overrides:
generatePatternCode in class Fragment
Following copied from class: net.sf.jse.Fragment
Parameters:
nowVar - runtime variable bound to current input fragments
nextVar - where to put remaining fragments after matching
See Also:
Fragment.compilePatternElement(net.sf.jse.FragmentList, net.sf.jse.IdentifierFragment, net.sf.jse.IdentifierFragment)