org.objectweb.jonathan.tools
Class JPP

java.lang.Object
  |
  +--org.objectweb.jonathan.tools.JPP

public class JPP
extends Object

JPP as Java PreProcessor. This class allows to preprocess a jpp file included the directives


Field Summary
static int BUFSIZE
           
static int INST_DEFINE
           
static int INST_ELIF
           
static int INST_ELSE
           
static int INST_ENDIF
           
static int INST_IF
           
static int INST_IFDEF
           
static int INST_IFNDEF
           
static int INST_INCLUDE
           
static int INST_UNDEF
           
static int NO_JPP_INST
           
 
Constructor Summary
JPP(String fileNameIn, OutputStream outS, Vector includeDirs, Hashtable defNames)
          JPP Constructor
 
Method Summary
 boolean preprocess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_JPP_INST

public static final int NO_JPP_INST

INST_INCLUDE

public static final int INST_INCLUDE

INST_DEFINE

public static final int INST_DEFINE

INST_IFDEF

public static final int INST_IFDEF

INST_IFNDEF

public static final int INST_IFNDEF

INST_IF

public static final int INST_IF

INST_ELSE

public static final int INST_ELSE

INST_ELIF

public static final int INST_ELIF

INST_ENDIF

public static final int INST_ENDIF

INST_UNDEF

public static final int INST_UNDEF

BUFSIZE

public static final int BUFSIZE
Constructor Detail

JPP

public JPP(String fileNameIn,
           OutputStream outS,
           Vector includeDirs,
           Hashtable defNames)
    throws IOException
JPP Constructor
Parameters:
fileNameIn - path of the jpp file
outputStream - outputStream where to send the result
includeDirs - list of the 'include' directories
definedNames - list of the defined names
Method Detail

preprocess

public boolean preprocess()
                   throws IOException