Servertec   Java API
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
iPP
Templates
Constants
Identifiers
Operators
Directives
Macros
Java API
pp( )
displayLogo( )
embeddedQuotes( )
removeBlankLines( )
removeComments( )
searchPath( )
verboseMessages( )
warningMessages( )
define( )
main( )
preprocess( )
undefine( )

Sales
Legal
Feedback

 

iPP can be directly accessed from Java using the following API.

API

    Category Description
    Classes
    pp( ) Constructs a new pp object.
    Variables
    displayLogo Used to set whether to display the copyright message.
    embeddedQuotes Used to set whether to support embedded quotes.
    removeComments Used to set whether user comments are to be preserved or removed.
    removeBlankLines Used to set whether blank lines are to be preserved or removed.
    searchPath The search path used by include directives.
    verboseMessages Used to set whether to display verbose error messages.
    warningMessages Used to set whether to display warnings.
    Methods
    define( ) Used to define a new identifier or macro or redefine the value of an existing one.
    main( ) Entry point from command line.
    preprocess( ) Used to preprocess a given item.
    undefine( ) Used to remove an existing identifier.

API

    Requires that stec.pp.pp be imported.

Example

    import stec.pp.pp;
    
    public class tPP
    {
        public static void main(String args[])
        {
            try
            {
                pp mypp = new pp();
                
                mypp.displayLogo = false;
    
                System.out.println
                (
                    mypp.preprocess("#message Hello World")
                );
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }
        }    
    }
    
 top of page
 Built with iScript Copyright © 1997-1999 Servertec. All rights reserved.
Last Modified: Tue Jan 26 22:17:56 EST 1999