public abstract class JavaElement
extends java.lang.Object
| 构造器和说明 |
|---|
JavaElement()
Instantiates a new java element.
|
JavaElement(JavaElement original)
Copy Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAnnotation(java.lang.String annotation)
Adds the annotation.
|
void |
addFormattedAnnotations(java.lang.StringBuilder sb,
int indentLevel)
Adds the formatted annotations.
|
void |
addFormattedJavadoc(java.lang.StringBuilder sb,
int indentLevel)
Adds the formatted javadoc.
|
void |
addJavaDocLine(java.lang.String javaDocLine)
Adds the java doc line.
|
void |
addSuppressTypeWarningsAnnotation()
Adds the suppress type warnings annotation.
|
java.util.List<java.lang.String> |
getAnnotations()
Gets the annotations.
|
java.util.List<java.lang.String> |
getJavaDocLines()
Gets the java doc lines.
|
JavaVisibility |
getVisibility()
Gets the visibility.
|
boolean |
isFinal()
Checks if is final.
|
boolean |
isStatic()
Checks if is static.
|
void |
setFinal(boolean isFinal)
Sets the final.
|
void |
setStatic(boolean isStatic)
Sets the static.
|
void |
setVisibility(JavaVisibility visibility)
Sets the visibility.
|
public JavaElement()
public JavaElement(JavaElement original)
original - the originalpublic java.util.List<java.lang.String> getJavaDocLines()
public void addJavaDocLine(java.lang.String javaDocLine)
javaDocLine - the java doc linepublic java.util.List<java.lang.String> getAnnotations()
public void addAnnotation(java.lang.String annotation)
annotation - the annotationpublic JavaVisibility getVisibility()
public void setVisibility(JavaVisibility visibility)
visibility - The visibility to set.public void addSuppressTypeWarningsAnnotation()
public void addFormattedJavadoc(java.lang.StringBuilder sb,
int indentLevel)
sb - the sbindentLevel - the indent levelpublic void addFormattedAnnotations(java.lang.StringBuilder sb,
int indentLevel)
sb - the sbindentLevel - the indent levelpublic boolean isFinal()
public void setFinal(boolean isFinal)
isFinal - the new finalpublic boolean isStatic()
public void setStatic(boolean isStatic)
isStatic - the new staticCopyright © 2018. All Rights Reserved.