- 所有已知子接口:
JavaConstructor,JavaExecutable,JavaField,JavaMethod
- 所有已知实现类:
DefaultJavaConstructor,DefaultJavaExecutable,DefaultJavaField,DefaultJavaMethod,JavaMethodDelegate
public interface JavaMember
- 从以下版本开始:
- 2.0
- 作者:
- Robert Scholte
-
方法概要
修饰符和类型方法说明Equivalent 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()booleanEquivalent ofModifier.isAbstract(int)booleanisFinal()Equivalent ofModifier.isFinal(int)booleanisNative()Equivalent ofModifier.isNative(int)booleanEquivalent ofModifier.isPrivate(int)booleanEquivalent ofModifier.isProtected(int)booleanisPublic()Equivalent ofModifier.isPublic(int)booleanisStatic()Equivalent ofModifier.isStatic(int)booleanEquivalent ofModifier.isStrict(int)booleanEquivalent ofModifier.isSynchronized(int)booleanEquivalent ofModifier.isTransient(int)booleanEquivalent ofModifier.isVolatile(int)
-
方法详细资料
-
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.- 返回:
- all modifiers is this member
-
getDeclaringClass
JavaClass getDeclaringClass()Equivalent ofMember.getDeclaringClass()- 返回:
- the declaring class
-
getName
String getName()Equivalent ofMember.getName()- 返回:
- the name of this member
-
isAbstract
boolean isAbstract()Equivalent ofModifier.isAbstract(int)- 返回:
trueif this member isabstract, otherwisefalse
-
isFinal
boolean isFinal()Equivalent ofModifier.isFinal(int)- 返回:
trueis this member isfinal, otherwisefalse
-
isNative
boolean isNative()Equivalent ofModifier.isNative(int)- 返回:
trueif this member isnative, otherwisefalse
-
isPrivate
boolean isPrivate()Equivalent ofModifier.isPrivate(int)- 返回:
trueif this member isprivate, otherwisefalse
-
isProtected
boolean isProtected()Equivalent ofModifier.isProtected(int)- 返回:
trueif this member isprotected; otherwisefalse
-
isPublic
boolean isPublic()Equivalent ofModifier.isPublic(int)- 返回:
trueif this member ispublic, otherwisefalse
-
isStatic
boolean isStatic()Equivalent ofModifier.isStatic(int)- 返回:
trueif this member isstatic, otherwisefalse
-
isStrictfp
boolean isStrictfp()Equivalent ofModifier.isStrict(int)- 返回:
trueif this member isstrictfp, otherwisefalse
-
isSynchronized
boolean isSynchronized()Equivalent ofModifier.isSynchronized(int)- 返回:
trueif this member issynchronized, otherwisefalse
-
isTransient
boolean isTransient()Equivalent ofModifier.isTransient(int)- 返回:
trueif this member istransient, otherwisefalse
-
isVolatile
boolean isVolatile()Equivalent ofModifier.isVolatile(int)- 返回:
trueif this member isvolatile, otherwisefalse
-