com.legstar.coxb
Enum CobolContext.Trunc

java.lang.Object
  extended by java.lang.Enum<CobolContext.Trunc>
      extended by com.legstar.coxb.CobolContext.Trunc
All Implemented Interfaces:
Serializable, Comparable<CobolContext.Trunc>
Enclosing class:
CobolContext

public static enum CobolContext.Trunc
extends Enum<CobolContext.Trunc>

This enumeration class represents how binary data is truncated depending on the number of digits specified in the PICTURE clause.


Enum Constant Summary
BIN
          TRUNC(BIN) No truncation occurs, this is equivalent to COMP-5.
OPT
          TRUNC(OPT) Leaves it up to the compiler to decide to truncate or not, based on performance considerations.
STD
          TRUNC(STD) Data truncated to the number of digits in the PICTURE clause.
 
Method Summary
static CobolContext.Trunc valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CobolContext.Trunc[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

OPT

public static final CobolContext.Trunc OPT
TRUNC(OPT) Leaves it up to the compiler to decide to truncate or not, based on performance considerations.


BIN

public static final CobolContext.Trunc BIN
TRUNC(BIN) No truncation occurs, this is equivalent to COMP-5.


STD

public static final CobolContext.Trunc STD
TRUNC(STD) Data truncated to the number of digits in the PICTURE clause.

Method Detail

values

public static CobolContext.Trunc[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (CobolContext.Trunc c : CobolContext.Trunc.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CobolContext.Trunc valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2015 LegSem. All Rights Reserved.