com.ibm.lpex.cobol
Class CobolWords.Word

java.lang.Object
  |
  +--com.ibm.lpex.cobol.CobolWords.Word
Enclosing class:
CobolWords

public static class CobolWords.Word
extends java.lang.Object

This class is used to combine a word with an id.


Constructor Summary
CobolWords.Word(java.lang.String string)
          Construct an instance of Word with only a string.
CobolWords.Word(java.lang.String string, int id)
          Construct an instance of Word with the given string and id.
 
Method Summary
 int id()
          Return the Word's id.
 java.lang.String toString()
          Return the Word as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CobolWords.Word

public CobolWords.Word(java.lang.String string,
                       int id)
Construct an instance of Word with the given string and id.

CobolWords.Word

public CobolWords.Word(java.lang.String string)
Construct an instance of Word with only a string. This can be used if no id is necessary.
Method Detail

toString

public java.lang.String toString()
Return the Word as a string.
Overrides:
toString in class java.lang.Object

id

public int id()
Return the Word's id.