com.liferay.portal.tools.sourceformatter
Class JavaTerm
java.lang.Object
com.liferay.portal.tools.sourceformatter.JavaTerm
public class JavaTerm
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JavaTerm
public JavaTerm(String name,
int type,
String content,
int lineCount)
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)