SWT LPEX
v3.0.5

com.ibm.lpex.cobol
Class CobolWords.Word

java.lang.Object
  extended bycom.ibm.lpex.cobol.CobolWords.Word
Enclosing class:
CobolWords

public static class CobolWords.Word
extends Object

This class is used to combine a keyword String with an id int.


Constructor Summary
CobolWords.Word(String string)
          Constructs an instance of Word with only a string.
CobolWords.Word(String string, int id)
          Constructs an instance of Word with the given string and id.
 
Method Summary
 int id()
          Returns the Word's id.
 String toString()
          Returns 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(String string,
                       int id)
Constructs an instance of Word with the given string and id.


CobolWords.Word

public CobolWords.Word(String string)
Constructs an instance of Word with only a string. This can be used if no id is necessary.

Method Detail

toString

public String toString()
Returns the Word as a string.


id

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


SWT LPEX
v3.0.5

(C) Copyright IBM Corporation 1998, 2005.  All Rights Reserved.