Class ClassConstants

java.lang.Object
All Implemented Interfaces:
Closeable, AutoCloseable, Readable, ChainableReader

public final class ClassConstants extends BaseFilterReader implements ChainableReader
Assembles the constants declared in a Java class in key1=value1(line separator)key2=value2 format.

Notes:

  1. This filter uses the BCEL external toolkit.
  2. This assembles only those constants that are not created using the syntax new whatever()
  3. This assembles constants declared using the basic datatypes and String only.
  4. The access modifiers of the declared constants do not matter.

Example:

<classconstants/>
Or:
<filterreader
    classname="org.apache.tools.ant.filters.ClassConstants"/>