LPEX
3.6.5

com.ibm.lpex.cobol
Class CobolWords.Word

java.lang.Object
  extended by com.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.

Overrides:
toString in class Object

id

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


LPEX
3.6.5

Copyright © 2012 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.