org.tinygroup.jspengine.appserv.server.util
类 PreprocessorUtil

java.lang.Object
  继承者 org.tinygroup.jspengine.appserv.server.util.PreprocessorUtil

public class PreprocessorUtil
extends Object

PreprocessorUtil is a utility class for managing the bytecode preprocessor(s). The list of preprocessors are passed in as a string array to the initialize method. If there is a problem initialize any of the preprocessors, all preprocessing is disabled.


构造方法摘要
PreprocessorUtil()
           
 
方法摘要
static boolean init(String[] ppClassNames)
          Initializes the preprocessor utility with the associated class names array arugment.
static boolean isPreprocessorEnabled()
          Indicates whether or not the preprocessor is enabled
static byte[] processClass(String className, byte[] classBytes)
          Processes a class through the preprocessor.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

PreprocessorUtil

public PreprocessorUtil()
方法详细信息

init

public static boolean init(String[] ppClassNames)
Initializes the preprocessor utility with the associated class names array arugment.

参数:
ppClassNames - - the String array of preprocessor class names.
返回:
- true if successful, otherwise false. All preprocessors must successfully initialize for true to be returned.

processClass

public static byte[] processClass(String className,
                                  byte[] classBytes)
Processes a class through the preprocessor.

参数:
className - - the class name.
classBytes - - the class byte array.
返回:
- the processed class byte array.

isPreprocessorEnabled

public static boolean isPreprocessorEnabled()
Indicates whether or not the preprocessor is enabled

返回:
- true of the preprocessor is enabled, otherwise false.


Copyright © 2006–2014 开源组织. All rights reserved.