Liferay 7.0-ce-m3

com.liferay.portal.tools.sourceformatter
Class JavaTerm

java.lang.Object
  extended by com.liferay.portal.tools.sourceformatter.JavaTerm

public class JavaTerm
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_PRIVATE
           
static int TYPE_CONSTRUCTOR_PROTECTED
           
static int TYPE_CONSTRUCTOR_PUBLIC
           
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_STATIC_BLOCK
           
static int TYPE_VARIABLE_PRIVATE
           
static int TYPE_VARIABLE_PRIVATE_STATIC
           
static int TYPE_VARIABLE_PROTECTED
           
static int TYPE_VARIABLE_PROTECTED_STATIC
           
static int TYPE_VARIABLE_PUBLIC
           
static int TYPE_VARIABLE_PUBLIC_STATIC
           
 
Constructor Summary
JavaTerm(String name, int type, String content, int lineCount)
           
 
Method Summary
 String getContent()
           
 int getLineCount()
           
 String getName()
           
 List<String> getParameterNames()
           
 List<String> getParameterTypes()
           
 int getType()
           
 boolean isClass()
           
 boolean isConstructor()
           
 boolean isMethod()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isVariable()
           
protected  void readParameterNamesAndTypes()
           
 void setContent(String content)
           
 void setLineCount(int lineCount)
           
 void setName(String name)
           
 void setParameterTypes(List<String> parameterTypes)
           
 void setType(int type)
           
protected  String stripAnnotation(String parameters)
           
 
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_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_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_STATIC_BLOCK

public static final int TYPE_STATIC_BLOCK
See Also:
Constant Field Values

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_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_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
Constructor Detail

JavaTerm

public JavaTerm(String name,
                int type,
                String content,
                int lineCount)
Method Detail

getContent

public String getContent()

getLineCount

public int getLineCount()

getName

public String getName()

getParameterNames

public List<String> getParameterNames()

getParameterTypes

public List<String> getParameterTypes()

getType

public int getType()

isClass

public boolean isClass()

isConstructor

public boolean isConstructor()

isMethod

public boolean isMethod()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isPublic

public boolean isPublic()

isStatic

public boolean isStatic()

isVariable

public boolean isVariable()

setContent

public void setContent(String content)

setLineCount

public void setLineCount(int lineCount)

setName

public void setName(String name)

setParameterTypes

public void setParameterTypes(List<String> parameterTypes)

setType

public void setType(int type)

readParameterNamesAndTypes

protected void readParameterNamesAndTypes()

stripAnnotation

protected String stripAnnotation(String parameters)

Liferay 7.0-ce-m3