Package com.thoughtworks.qdox.model
Class AbstractJavaEntity
java.lang.Object
com.thoughtworks.qdox.model.AbstractBaseJavaEntity
com.thoughtworks.qdox.model.AbstractJavaEntity
- All Implemented Interfaces:
Serializable
,Comparable
- Direct Known Subclasses:
AbstractInheritableJavaEntity
,JavaField
- See Also:
-
Field Summary
FieldsFields inherited from class com.thoughtworks.qdox.model.AbstractBaseJavaEntity
name, parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
Return list of modifiers as Strings.getNamedParameter
(String tagName, String parameterName) Convenience method forgetTagByName(String).getNamedParameter(String)
that also checks for null tag.Not every entity has a parentClass, but AnnotationFieldRef requires access to it.getTagByName
(String name) getTags()
getTagsByName
(String name) boolean
boolean
isFinal()
boolean
isNative()
boolean
boolean
boolean
isPublic()
boolean
isStatic()
boolean
boolean
boolean
boolean
void
setComment
(String comment) void
setModifiers
(String[] modifiers) void
setParentClass
(JavaClass parentClass) void
protected void
write
(IndentBuffer result) protected void
protected void
writeAllModifiers
(IndentBuffer result) protected abstract void
writeBody
(IndentBuffer result) protected void
Methods inherited from class com.thoughtworks.qdox.model.AbstractBaseJavaEntity
getAnnotations, getLineNumber, getName, getParent, setAnnotations, setLineNumber, setName, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
-
Field Details
-
modifiers
-
-
Constructor Details
-
AbstractJavaEntity
public AbstractJavaEntity()
-
-
Method Details
-
getModifiers
Return list of modifiers as Strings. (public, private, protected, final, abstract, static) -
getComment
-
getTags
-
getTagsByName
-
getTagByName
-
getNamedParameter
Convenience method forgetTagByName(String).getNamedParameter(String)
that also checks for null tag.- Since:
- 1.3
-
getCodeBlock
-
write
-
writeBody
-
setModifiers
-
setComment
-
setTags
-
isAbstract
public boolean isAbstract() -
isPublic
public boolean isPublic() -
isPrivate
public boolean isPrivate() -
isProtected
public boolean isProtected() -
isStatic
public boolean isStatic() -
isFinal
public boolean isFinal() -
isSynchronized
public boolean isSynchronized() -
isTransient
public boolean isTransient() -
isVolatile
public boolean isVolatile()- Since:
- 1.4
-
isNative
public boolean isNative()- Since:
- 1.4
-
isStrictfp
public boolean isStrictfp()- Since:
- 1.4
-
writeNonAccessibilityModifiers
-
writeAccessibilityModifier
-
writeAllModifiers
-
getSource
-
setParentClass
-
getParentClass
Description copied from class:AbstractBaseJavaEntity
Not every entity has a parentClass, but AnnotationFieldRef requires access to it. When used with JavaClass, don't confuse this with getSuperClass()- Overrides:
getParentClass
in classAbstractBaseJavaEntity
- Returns:
- the surrounding class
-