com.joanju.proparse
Class ProToken

java.lang.Object
  extended by antlr.CommonHiddenStreamToken
      extended by com.joanju.proparse.ProToken
All Implemented Interfaces:
Xferable

public class ProToken
extends antlr.CommonHiddenStreamToken
implements Xferable


Constructor Summary
ProToken()
          Only to be used for persistence/serialization.
ProToken(IntegerIndex<java.lang.String> filenameList, int type, java.lang.String s)
           
ProToken(IntegerIndex<java.lang.String> filenameList, int type, java.lang.String txt, int file, int line, int col, int macroSourceNum)
           
ProToken(ProToken orig)
           
 
Method Summary
 int getFileIndex()
           
 java.lang.String getFilename()
           
 IntegerIndex<java.lang.String> getFilenameList()
          A reference to the collection of filenames from the parse.
 int getMacroSourceNum()
           
 ProToken getNext()
          Convenience method for (ProToken) getHiddenAfter().
 ProToken getPrev()
          Convenience method for (ProToken) getHiddenBefore().
 void setFileIndex(int fileIndex)
           
 void setFilenameList(IntegerIndex<java.lang.String> filenameList)
          A reference to the collection of filenames from the parse.
 void setHiddenAfter(ProToken t)
           
 void setHiddenBefore(ProToken t)
           
 void setMacroSourceNum(int macroSourceNum)
           
 void writeXferBytes(DataXferStream out)
          Implement Xferable.
 void writeXferSchema(DataXferStream out)
          Write's this object's class's schema to the DataXferStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProToken

public ProToken()
Only to be used for persistence/serialization.


ProToken

public ProToken(IntegerIndex<java.lang.String> filenameList,
                int type,
                java.lang.String s)

ProToken

public ProToken(IntegerIndex<java.lang.String> filenameList,
                int type,
                java.lang.String txt,
                int file,
                int line,
                int col,
                int macroSourceNum)

ProToken

public ProToken(ProToken orig)
Method Detail

getFileIndex

public int getFileIndex()

getFilenameList

public IntegerIndex<java.lang.String> getFilenameList()
A reference to the collection of filenames from the parse.


getFilename

public java.lang.String getFilename()

getMacroSourceNum

public int getMacroSourceNum()

getNext

public ProToken getNext()
Convenience method for (ProToken) getHiddenAfter().


getPrev

public ProToken getPrev()
Convenience method for (ProToken) getHiddenBefore().


setHiddenAfter

public void setHiddenAfter(ProToken t)

setHiddenBefore

public void setHiddenBefore(ProToken t)

setFileIndex

public void setFileIndex(int fileIndex)

setFilenameList

public void setFilenameList(IntegerIndex<java.lang.String> filenameList)
A reference to the collection of filenames from the parse.


setMacroSourceNum

public void setMacroSourceNum(int macroSourceNum)

writeXferBytes

public void writeXferBytes(DataXferStream out)
                    throws java.io.IOException
Implement Xferable.

Specified by:
writeXferBytes in interface Xferable
Throws:
java.io.IOException

writeXferSchema

public void writeXferSchema(DataXferStream out)
                     throws java.io.IOException
Description copied from interface: Xferable
Write's this object's class's schema to the DataXferStream. Calls DataXferStream schema*(fieldname) for each field.

Specified by:
writeXferSchema in interface Xferable
Throws:
java.io.IOException


Copyright © 2008 Joanju Software. All Rights Reserved.