Package groovy.lang
Interface MetaMember
- All Known Subinterfaces:
ClosureInvokingMethod
- All Known Implementing Classes:
ArrayGetAtMetaMethod,ArrayMetaMethod,ArrayPutAtMetaMethod,BooleanArrayGetAtMetaMethod,BooleanArrayPutAtMetaMethod,ByteArrayGetAtMetaMethod,ByteArrayPutAtMetaMethod,CachedConstructor,CachedField,CachedMethod,CallSiteAwareMetaMethod,CharacterArrayGetAtMetaMethod,CharacterArrayPutAtMetaMethod,ClosureMetaMethod,ClosureStaticMetaMethod,DoubleArrayGetAtMetaMethod,DoubleArrayPutAtMetaMethod,FloatArrayGetAtMetaMethod,FloatArrayPutAtMetaMethod,GeneratedMetaMethod,GeneratedMetaMethod.Proxy,GroovyCategorySupport.CategoryMethod,IntegerArrayGetAtMetaMethod,IntegerArrayPutAtMetaMethod,LongArrayGetAtMetaMethod,LongArrayPutAtMetaMethod,MetaArrayLengthProperty,MetaBeanProperty,MetaClassImpl.MetaConstructor,MetaExpandoProperty,MetaMethod,MetaProperty,MethodMetaProperty,MethodMetaProperty.GetBeanMethodMetaProperty,MethodMetaProperty.GetMethodMetaProperty,MixinInstanceMetaMethod,MixinInstanceMetaProperty,MultipleSetterProperty,NewInstanceMetaMethod,NewMetaMethod,NewStaticMetaMethod,NumberNumberDiv,NumberNumberMetaMethod,NumberNumberMinus,NumberNumberMultiply,NumberNumberPlus,ObjectArrayGetAtMetaMethod,ObjectArrayPutAtMetaMethod,ReflectionMetaMethod,ShortArrayGetAtMetaMethod,ShortArrayPutAtMetaMethod,ThreadManagedMetaBeanProperty,TransformMetaMethod
public interface MetaMember
Common values of a class member -- a field, property, method, or constructor.
- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the Java modifier bit set for this meta member.getName()Returns the simple name of this meta member.default booleanisFinal()Indicates whether this member is declaredfinal.default booleanIndicates whether this member has package visibility.default booleanIndicates whether this member is declaredprivate.default booleanIndicates whether this member is declaredprotected.default booleanisPublic()Indicates whether this member is declaredpublic.default booleanisStatic()Indicates whether this member is declaredstatic.default booleanIndicates whether this member is synthetic from the JVM's perspective.
-
Method Details
-
getName
String getName()Returns the simple name of this meta member.- Returns:
- the member name
-
getModifiers
int getModifiers()Returns the Java modifier bit set for this meta member.- Returns:
- the modifier flags
-
isFinal
default boolean isFinal()Indicates whether this member is declaredfinal.- Returns:
trueif the final modifier is present
-
isPackagePrivate
default boolean isPackagePrivate()Indicates whether this member has package visibility.- Returns:
trueif no explicit access modifier is present
-
isPrivate
default boolean isPrivate()Indicates whether this member is declaredprivate.- Returns:
trueif the private modifier is present
-
isProtected
default boolean isProtected()Indicates whether this member is declaredprotected.- Returns:
trueif the protected modifier is present
-
isPublic
default boolean isPublic()Indicates whether this member is declaredpublic.- Returns:
trueif the public modifier is present
-
isStatic
default boolean isStatic()Indicates whether this member is declaredstatic.- Returns:
trueif the static modifier is present
-
isSynthetic
default boolean isSynthetic()Indicates whether this member is synthetic from the JVM's perspective.- Returns:
trueif the synthetic modifier bit is present
-