org.objectweb.jonathan.tools
Class JPP

java.lang.Object
  extended byorg.objectweb.jonathan.tools.JPP

public class JPP
extends java.lang.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(java.lang.String fileNameIn, java.io.OutputStream outS, java.util.Vector includeDirs, java.util.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
See Also:
Constant Field Values

INST_INCLUDE

public static final int INST_INCLUDE
See Also:
Constant Field Values

INST_DEFINE

public static final int INST_DEFINE
See Also:
Constant Field Values

INST_IFDEF

public static final int INST_IFDEF
See Also:
Constant Field Values

INST_IFNDEF

public static final int INST_IFNDEF
See Also:
Constant Field Values

INST_IF

public static final int INST_IF
See Also:
Constant Field Values

INST_ELSE

public static final int INST_ELSE
See Also:
Constant Field Values

INST_ELIF

public static final int INST_ELIF
See Also:
Constant Field Values

INST_ENDIF

public static final int INST_ENDIF
See Also:
Constant Field Values

INST_UNDEF

public static final int INST_UNDEF
See Also:
Constant Field Values

BUFSIZE

public static final int BUFSIZE
See Also:
Constant Field Values
Constructor Detail

JPP

public JPP(java.lang.String fileNameIn,
           java.io.OutputStream outS,
           java.util.Vector includeDirs,
           java.util.Hashtable defNames)
    throws java.io.IOException
JPP Constructor

Parameters:
fileNameIn - path of the jpp file
includeDirs - list of the 'include' directories
Method Detail

preprocess

public boolean preprocess()
                   throws java.io.IOException
Throws:
java.io.IOException