public abstract class JavaElement extends Object
Constructor and Description |
---|
JavaElement()
Instantiates a new java element.
|
JavaElement(JavaElement original)
Copy Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(String annotation)
Adds the annotation.
|
void |
addFormattedAnnotations(StringBuilder sb,
int indentLevel)
Adds the formatted annotations.
|
void |
addFormattedJavadoc(StringBuilder sb,
int indentLevel)
Adds the formatted javadoc.
|
void |
addJavaDocLine(String javaDocLine)
Adds the java doc line.
|
void |
addSuppressTypeWarningsAnnotation()
Adds the suppress type warnings annotation.
|
List<String> |
getAnnotations()
Gets the annotations.
|
List<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 List<String> getJavaDocLines()
public void addJavaDocLine(String javaDocLine)
javaDocLine
- the java doc linepublic void addAnnotation(String annotation)
annotation
- the annotationpublic JavaVisibility getVisibility()
public void setVisibility(JavaVisibility visibility)
visibility
- The visibility to set.public void addSuppressTypeWarningsAnnotation()
public void addFormattedJavadoc(StringBuilder sb, int indentLevel)
sb
- the sbindentLevel
- the indent levelpublic void addFormattedAnnotations(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 © 2006–2018 MyBatis.org. All rights reserved.