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 JavaMemberJavaModel representation of aMemberincluding related methods ofModifier- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JavaClassgetDeclaringClass()Equivalent ofMember.getDeclaringClass()java.util.List<java.lang.String>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.java.lang.StringgetName()Equivalent ofMember.getName()booleanisAbstract()Equivalent ofModifier.isAbstract(int)booleanisFinal()Equivalent ofModifier.isFinal(int)booleanisNative()Equivalent ofModifier.isNative(int)booleanisPrivate()Equivalent ofModifier.isPrivate(int)booleanisProtected()Equivalent ofModifier.isProtected(int)booleanisPublic()Equivalent ofModifier.isPublic(int)booleanisStatic()Equivalent ofModifier.isStatic(int)booleanisStrictfp()Equivalent ofModifier.isStrict(int)booleanisSynchronized()Equivalent ofModifier.isSynchronized(int)booleanisTransient()Equivalent ofModifier.isTransient(int)booleanisVolatile()Equivalent ofModifier.isVolatile(int)
-
-
-
Method Detail
-
getModifiers
java.util.List<java.lang.String> 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
java.lang.String getName()
Equivalent ofMember.getName()- Returns:
- the name of this member
-
isAbstract
boolean isAbstract()
Equivalent ofModifier.isAbstract(int)- Returns:
trueif this member isabstract, otherwisefalse
-
isFinal
boolean isFinal()
Equivalent ofModifier.isFinal(int)- Returns:
trueis this member isfinal, otherwisefalse
-
isNative
boolean isNative()
Equivalent ofModifier.isNative(int)- Returns:
trueif this member isnative, otherwisefalse
-
isPrivate
boolean isPrivate()
Equivalent ofModifier.isPrivate(int)- Returns:
trueif this member isprivate, otherwisefalse
-
isProtected
boolean isProtected()
Equivalent ofModifier.isProtected(int)- Returns:
trueif this member isprotected; otherwisefalse
-
isPublic
boolean isPublic()
Equivalent ofModifier.isPublic(int)- Returns:
trueif this member ispublic, otherwisefalse
-
isStatic
boolean isStatic()
Equivalent ofModifier.isStatic(int)- Returns:
trueif this member isstatic, otherwisefalse
-
isStrictfp
boolean isStrictfp()
Equivalent ofModifier.isStrict(int)- Returns:
trueif this member isstrictfp, otherwisefalse
-
isSynchronized
boolean isSynchronized()
Equivalent ofModifier.isSynchronized(int)- Returns:
trueif this member issynchronized, otherwisefalse
-
isTransient
boolean isTransient()
Equivalent ofModifier.isTransient(int)- Returns:
trueif this member istransient, otherwisefalse
-
isVolatile
boolean isVolatile()
Equivalent ofModifier.isVolatile(int)- Returns:
trueif this member isvolatile, otherwisefalse
-
-