public abstract class AbstractJavaEntity extends AbstractBaseJavaEntity implements JavaModel
Constructor and Description |
---|
AbstractJavaEntity() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getModifiers()
Return list of modifiers as Strings.
|
String |
getName() |
JavaClass |
getParentClass()
Not every entity has a parentClass, but AnnotationFieldRef requires access to it.
|
boolean |
isAbstract()
Equivalent of
Modifier.isAbstract(int) |
boolean |
isFinal()
Equivalent of
Modifier.isFinal(int) |
boolean |
isNative()
Equivalent of
Modifier.isNative(int) |
boolean |
isPrivate()
Equivalent of
Modifier.isPrivate(int) |
boolean |
isProtected()
Equivalent of
Modifier.isProtected(int) |
boolean |
isPublic()
Equivalent of
Modifier.isPublic(int) |
boolean |
isStatic()
Equivalent of
Modifier.isStatic(int) |
boolean |
isStrictfp()
Equivalent of
Modifier.isStrict(int) |
boolean |
isSynchronized()
Equivalent of
Modifier.isSynchronized(int) |
boolean |
isTransient()
Equivalent of
Modifier.isTransient(int) |
boolean |
isVolatile()
Equivalent of
Modifier.isVolatile(int) |
void |
setModifiers(List<String> modifiers) |
void |
setName(String name) |
void |
setParentClass(JavaClass parentClass) |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setTags
getLineNumber, getModelWriter, getSource, setLineNumber, setModelWriterFactory, setSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCodeBlock, getLineNumber, getSource
public List<String> getModifiers()
null
public boolean isAbstract()
Modifier.isAbstract(int)
true
if entity is abstract, otherwise false
public boolean isPublic()
Modifier.isPublic(int)
true
if entity is public, otherwise false
public boolean isPrivate()
Modifier.isPrivate(int)
true
if entity is private, otherwise false
public boolean isProtected()
Modifier.isProtected(int)
true
if entity is protected, otherwise false
public boolean isStatic()
Modifier.isStatic(int)
true
if entity is static, otherwise false
public boolean isFinal()
Modifier.isFinal(int)
true
if entity is final, otherwise false
public boolean isSynchronized()
Modifier.isSynchronized(int)
true
if entity is sunchronized, otherwise false
public boolean isTransient()
Modifier.isTransient(int)
true
if entity is transient, otherwise false
public boolean isVolatile()
Modifier.isVolatile(int)
true
if entity is volatile, otherwise false
public boolean isNative()
Modifier.isNative(int)
true
if entity is native, otherwise false
public boolean isStrictfp()
Modifier.isStrict(int)
true
if entity is strictfp, otherwise false
public void setParentClass(JavaClass parentClass)
public JavaClass getParentClass()
AbstractBaseJavaEntity
getParentClass
in class AbstractBaseJavaEntity
public String getName()
public void setName(String name)
Copyright © 2002–2014. All rights reserved.