Package com.thoughtworks.qdox.model
Interface JavaMember
- All Known Subinterfaces:
JavaConstructor
,JavaExecutable
,JavaField
,JavaMethod
- All Known Implementing Classes:
DefaultJavaConstructor
,DefaultJavaExecutable
,DefaultJavaField
,DefaultJavaMethod
,JavaMethodDelegate
public interface JavaMember
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionEquivalent ofMember.getDeclaringClass()
Equivalent ofMember.getModifiers()
This does not follow the java-api With the Member-class, getModifiers returns anint
, which should be decoded with the Modifier.getName()
Equivalent ofMember.getName()
boolean
Equivalent ofModifier.isAbstract(int)
boolean
isFinal()
Equivalent ofModifier.isFinal(int)
boolean
isNative()
Equivalent ofModifier.isNative(int)
boolean
Equivalent ofModifier.isPrivate(int)
boolean
Equivalent ofModifier.isProtected(int)
boolean
isPublic()
Equivalent ofModifier.isPublic(int)
boolean
isStatic()
Equivalent ofModifier.isStatic(int)
boolean
Equivalent ofModifier.isStrict(int)
boolean
Equivalent ofModifier.isSynchronized(int)
boolean
Equivalent ofModifier.isTransient(int)
boolean
Equivalent ofModifier.isVolatile(int)
-
Method Details
-
getModifiers
Equivalent ofMember.getModifiers()
This does not follow the java-api With the Member-class, getModifiers returns anint
, which should be decoded with the Modifier. If this member was extracted from a source, it will keep its order. Otherwise if will be in the preferred order of the java-api.- Returns:
- all modifiers is this member
-
getDeclaringClass
JavaClass getDeclaringClass()Equivalent ofMember.getDeclaringClass()
- Returns:
- the declaring class
-
getName
String getName()Equivalent ofMember.getName()
- Returns:
- the name of this member
-
isAbstract
boolean isAbstract()Equivalent ofModifier.isAbstract(int)
- Returns:
true
if this member isabstract
, otherwisefalse
-
isFinal
boolean isFinal()Equivalent ofModifier.isFinal(int)
- Returns:
true
is this member isfinal
, otherwisefalse
-
isNative
boolean isNative()Equivalent ofModifier.isNative(int)
- Returns:
true
if this member isnative
, otherwisefalse
-
isPrivate
boolean isPrivate()Equivalent ofModifier.isPrivate(int)
- Returns:
true
if this member isprivate
, otherwisefalse
-
isProtected
boolean isProtected()Equivalent ofModifier.isProtected(int)
- Returns:
true
if this member isprotected
; otherwisefalse
-
isPublic
boolean isPublic()Equivalent ofModifier.isPublic(int)
- Returns:
true
if this member ispublic
, otherwisefalse
-
isStatic
boolean isStatic()Equivalent ofModifier.isStatic(int)
- Returns:
true
if this member isstatic
, otherwisefalse
-
isStrictfp
boolean isStrictfp()Equivalent ofModifier.isStrict(int)
- Returns:
true
if this member isstrictfp
, otherwisefalse
-
isSynchronized
boolean isSynchronized()Equivalent ofModifier.isSynchronized(int)
- Returns:
true
if this member issynchronized
, otherwisefalse
-
isTransient
boolean isTransient()Equivalent ofModifier.isTransient(int)
- Returns:
true
if this member istransient
, otherwisefalse
-
isVolatile
boolean isVolatile()Equivalent ofModifier.isVolatile(int)
- Returns:
true
if this member isvolatile
, otherwisefalse
-