net.sf.jse
Class IntegerFragment

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

public class IntegerFragment
extends LiteralFragment

Fragment representing integer literal

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

Fields inherited from class net.sf.jse.Fragment
out
 
Constructor Summary
IntegerFragment(java.lang.Integer x)
           
IntegerFragment(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

IntegerFragment

public IntegerFragment(java.lang.Integer x)

IntegerFragment

public IntegerFragment(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)