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
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 |
PunctuationFragment
public PunctuationFragment(java.lang.String s)
PunctuationFragment
public PunctuationFragment(antlr.Token t)
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 fragmentsnextVar
- where to put remaining fragments after matching- See Also:
Fragment.compilePatternElement(net.sf.jse.FragmentList, net.sf.jse.IdentifierFragment, net.sf.jse.IdentifierFragment)