macros
Class ENUM_BITS

java.lang.Object
  |
  +--jatha.Macro
        |
        +--macros.ENUM_BITS

public class ENUM_BITS
extends Macro

ENUM_BITS(elem1, elem2, ...)

This macro creates a bitfield enumeration. That is, each element of the enumeration is a power of 2, allowing several elements to be bitwise OR'ed together. Example: @ENUM_BITS(BLAH, QWERTY, ELMO) will generate something like this:

 public static final int BLAH = 1;
 public static final int QWERTY = 2;
 public static final int ELMO = 4;
 

Note: this macro only declares some member variables; it doesn't declare an entire class like ENUM_OBJ.

See Also:
ENUM_OBJ, ENUM_INT

Fields inherited from class jatha.Macro
util
 
Constructor Summary
ENUM_BITS()
           
 
Method Summary
 void expand(java.lang.String[] args, java.io.Writer out, Expander expander)
          Expands the macro
 
Methods inherited from class jatha.Macro
expand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ENUM_BITS

public ENUM_BITS()
Method Detail

expand

public void expand(java.lang.String[] args,
                   java.io.Writer out,
                   Expander expander)
            throws java.io.IOException
Expands the macro
Overrides:
expand in class Macro