Liferay 6.2.0-ce-m5

com.liferay.portal.tools
Class SourceFormatter

java.lang.Object
  extended by com.liferay.portal.tools.SourceFormatter

public class SourceFormatter
extends Object


Field Summary
static int _TYPE_CLASS_PRIVATE
           
static int _TYPE_CLASS_PRIVATE_STATIC
           
static int _TYPE_CLASS_PROTECTED
           
static int _TYPE_CLASS_PROTECTED_STATIC
           
static int _TYPE_CLASS_PUBLIC
           
static int _TYPE_CLASS_PUBLIC_STATIC
           
static int[] _TYPE_CONSTRUCTOR
           
static int _TYPE_CONSTRUCTOR_PRIVATE
           
static int _TYPE_CONSTRUCTOR_PROTECTED
           
static int _TYPE_CONSTRUCTOR_PUBLIC
           
static int[] _TYPE_METHOD
           
static int _TYPE_METHOD_PRIVATE
           
static int _TYPE_METHOD_PRIVATE_STATIC
           
static int _TYPE_METHOD_PROTECTED
           
static int _TYPE_METHOD_PROTECTED_STATIC
           
static int _TYPE_METHOD_PUBLIC
           
static int _TYPE_METHOD_PUBLIC_STATIC
           
static int[] _TYPE_VARIABLE_NOT_FINAL
           
static int[] _TYPE_VARIABLE_NOT_STATIC
           
static int _TYPE_VARIABLE_PRIVATE
           
static int _TYPE_VARIABLE_PRIVATE_STATIC
           
static int _TYPE_VARIABLE_PRIVATE_STATIC_FINAL
           
static int _TYPE_VARIABLE_PROTECTED
           
static int _TYPE_VARIABLE_PROTECTED_STATIC
           
static int _TYPE_VARIABLE_PROTECTED_STATIC_FINAL
           
static int _TYPE_VARIABLE_PUBLIC
           
static int _TYPE_VARIABLE_PUBLIC_STATIC
           
static int _TYPE_VARIABLE_PUBLIC_STATIC_FINAL
           
 
Constructor Summary
SourceFormatter(boolean useProperties, boolean throwException)
           
 
Method Summary
static void main(String[] args)
           
static String stripJavaImports(String content, String packageDir, String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_TYPE_CLASS_PRIVATE

public static final int _TYPE_CLASS_PRIVATE
See Also:
Constant Field Values

_TYPE_CLASS_PRIVATE_STATIC

public static final int _TYPE_CLASS_PRIVATE_STATIC
See Also:
Constant Field Values

_TYPE_CLASS_PROTECTED

public static final int _TYPE_CLASS_PROTECTED
See Also:
Constant Field Values

_TYPE_CLASS_PROTECTED_STATIC

public static final int _TYPE_CLASS_PROTECTED_STATIC
See Also:
Constant Field Values

_TYPE_CLASS_PUBLIC

public static final int _TYPE_CLASS_PUBLIC
See Also:
Constant Field Values

_TYPE_CLASS_PUBLIC_STATIC

public static final int _TYPE_CLASS_PUBLIC_STATIC
See Also:
Constant Field Values

_TYPE_CONSTRUCTOR

public static final int[] _TYPE_CONSTRUCTOR

_TYPE_CONSTRUCTOR_PRIVATE

public static final int _TYPE_CONSTRUCTOR_PRIVATE
See Also:
Constant Field Values

_TYPE_CONSTRUCTOR_PROTECTED

public static final int _TYPE_CONSTRUCTOR_PROTECTED
See Also:
Constant Field Values

_TYPE_CONSTRUCTOR_PUBLIC

public static final int _TYPE_CONSTRUCTOR_PUBLIC
See Also:
Constant Field Values

_TYPE_METHOD

public static final int[] _TYPE_METHOD

_TYPE_METHOD_PRIVATE

public static final int _TYPE_METHOD_PRIVATE
See Also:
Constant Field Values

_TYPE_METHOD_PRIVATE_STATIC

public static final int _TYPE_METHOD_PRIVATE_STATIC
See Also:
Constant Field Values

_TYPE_METHOD_PROTECTED

public static final int _TYPE_METHOD_PROTECTED
See Also:
Constant Field Values

_TYPE_METHOD_PROTECTED_STATIC

public static final int _TYPE_METHOD_PROTECTED_STATIC
See Also:
Constant Field Values

_TYPE_METHOD_PUBLIC

public static final int _TYPE_METHOD_PUBLIC
See Also:
Constant Field Values

_TYPE_METHOD_PUBLIC_STATIC

public static final int _TYPE_METHOD_PUBLIC_STATIC
See Also:
Constant Field Values

_TYPE_VARIABLE_NOT_FINAL

public static final int[] _TYPE_VARIABLE_NOT_FINAL

_TYPE_VARIABLE_NOT_STATIC

public static final int[] _TYPE_VARIABLE_NOT_STATIC

_TYPE_VARIABLE_PRIVATE

public static final int _TYPE_VARIABLE_PRIVATE
See Also:
Constant Field Values

_TYPE_VARIABLE_PRIVATE_STATIC

public static final int _TYPE_VARIABLE_PRIVATE_STATIC
See Also:
Constant Field Values

_TYPE_VARIABLE_PRIVATE_STATIC_FINAL

public static final int _TYPE_VARIABLE_PRIVATE_STATIC_FINAL
See Also:
Constant Field Values

_TYPE_VARIABLE_PROTECTED

public static final int _TYPE_VARIABLE_PROTECTED
See Also:
Constant Field Values

_TYPE_VARIABLE_PROTECTED_STATIC

public static final int _TYPE_VARIABLE_PROTECTED_STATIC
See Also:
Constant Field Values

_TYPE_VARIABLE_PROTECTED_STATIC_FINAL

public static final int _TYPE_VARIABLE_PROTECTED_STATIC_FINAL
See Also:
Constant Field Values

_TYPE_VARIABLE_PUBLIC

public static final int _TYPE_VARIABLE_PUBLIC
See Also:
Constant Field Values

_TYPE_VARIABLE_PUBLIC_STATIC

public static final int _TYPE_VARIABLE_PUBLIC_STATIC
See Also:
Constant Field Values

_TYPE_VARIABLE_PUBLIC_STATIC_FINAL

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

SourceFormatter

public SourceFormatter(boolean useProperties,
                       boolean throwException)
                throws Exception
Throws:
Exception
Method Detail

main

public static void main(String[] args)

stripJavaImports

public static String stripJavaImports(String content,
                                      String packageDir,
                                      String className)
                               throws IOException
Throws:
IOException

Liferay 6.2.0-ce-m5