-
Notifications
You must be signed in to change notification settings - Fork 53
io microsphere reflect Modifier
Type: Enum | Module: microsphere-java-core | Package: io.microsphere.reflect | Since: 1.0.0
Source:
microsphere-java-core/src/main/java/io/microsphere/reflect/Modifier.java
The enumeration class for Java Reflection java.lang.reflect.Modifier
public enum ModifierAuthor: Mercy
-
Introduced in:
1.0.0 -
Current Project Version:
0.1.10-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 8 | ✅ Compatible |
| Java 11 | ✅ Compatible |
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
Add the following dependency to your pom.xml:
<dependency>
<groupId>io.github.microsphere-projects</groupId>
<artifactId>microsphere-java-core</artifactId>
<version>${microsphere-java.version}</version>
</dependency>Tip: Use the BOM (
microsphere-java-dependencies) for consistent version management. See the Getting Started guide.
import io.microsphere.reflect.Modifier;| Method | Description |
|---|---|
getValue |
The public modifier. |
matches |
matches the specified modifier |
isPublic |
matches the specified modifiers |
isPrivate |
Checks if the specified modifiers contain the private modifier. |
isProtected |
Checks if the specified modifiers contain the protected modifier. |
isStatic |
Checks if the specified modifiers contain the static modifier. |
isFinal |
Checks if the specified modifiers contain the final modifier. |
isSynchronized |
Checks if the specified modifiers contain the synchronized modifier. |
isVolatile |
Checks if the specified modifiers contain the volatile modifier. |
isTransient |
Checks if the specified modifiers contain the transient modifier. |
isNative |
Checks if the specified modifiers contain the native modifier. |
isInterface |
Checks if the specified modifiers contain the interface modifier. |
isAbstract |
Checks if the specified modifiers contain the abstract modifier. |
isStrict |
Checks if the specified modifiers contain the strict modifier. |
isBridge |
Checks if the specified modifiers contain the bridge modifier. |
isVarArgs |
Checks if the specified modifiers contain the varargs modifier. |
isSynthetic |
Checks if the specified modifiers contain the synthetic modifier. |
isAnnotation |
Checks if the specified modifiers contain the annotation modifier. |
isEnum |
Checks if the specified modifiers contain the enum modifier. |
isMandated |
Checks if the specified modifiers contain the mandated modifier. |
public int getValue()The public modifier.
/
PUBLIC(java.lang.reflect.Modifier.PUBLIC),
/**
The private modifier.
/
PRIVATE(java.lang.reflect.Modifier.PRIVATE),
/**
The protected modifier.
/
PROTECTED(java.lang.reflect.Modifier.PROTECTED),
/**
The static modifier.
/
STATIC(java.lang.reflect.Modifier.STATIC),
/**
The final modifier.
/
FINAL(java.lang.reflect.Modifier.FINAL),
/**
The synchronized modifier.
/
SYNCHRONIZED(java.lang.reflect.Modifier.SYNCHRONIZED),
/**
The volatile modifier.
/
VOLATILE(java.lang.reflect.Modifier.VOLATILE),
/**
The transient modifier.
/
TRANSIENT(java.lang.reflect.Modifier.TRANSIENT),
/**
The native modifier.
/
NATIVE(java.lang.reflect.Modifier.NATIVE),
/**
The interface modifier.
/
INTERFACE(java.lang.reflect.Modifier.INTERFACE),
/**
The abstract modifier.
/
ABSTRACT(java.lang.reflect.Modifier.ABSTRACT),
/**
The strictfp modifier.
/
STRICT(java.lang.reflect.Modifier.STRICT),
BRIDGE(0x00000040),
VARARGS(0x00000080),
SYNTHETIC(0x00001000),
ANNOTATION(0x00002000),
ENUM(0x00004000),
MANDATED(0x00008000);
private final int value;
Modifier(int value) { this.value = value; }
/** The bit value of modifier
public static boolean isPrivate(int modifiers)Checks if the specified modifiers contain the private modifier.
public static boolean isProtected(int modifiers)Checks if the specified modifiers contain the protected modifier.
public static boolean isStatic(int modifiers)Checks if the specified modifiers contain the static modifier.
public static boolean isFinal(int modifiers)Checks if the specified modifiers contain the final modifier.
public static boolean isSynchronized(int modifiers)Checks if the specified modifiers contain the synchronized modifier.
public static boolean isVolatile(int modifiers)Checks if the specified modifiers contain the volatile modifier.
public static boolean isTransient(int modifiers)Checks if the specified modifiers contain the transient modifier.
public static boolean isNative(int modifiers)Checks if the specified modifiers contain the native modifier.
public static boolean isInterface(int modifiers)Checks if the specified modifiers contain the interface modifier.
public static boolean isAbstract(int modifiers)Checks if the specified modifiers contain the abstract modifier.
public static boolean isStrict(int modifiers)Checks if the specified modifiers contain the strict modifier.
public static boolean isBridge(int modifiers)Checks if the specified modifiers contain the bridge modifier.
public static boolean isVarArgs(int modifiers)Checks if the specified modifiers contain the varargs modifier.
public static boolean isSynthetic(int modifiers)Checks if the specified modifiers contain the synthetic modifier.
public static boolean isAnnotation(int modifiers)Checks if the specified modifiers contain the annotation modifier.
public static boolean isEnum(int modifiers)Checks if the specified modifiers contain the enum modifier.
public static boolean isMandated(int modifiers)Checks if the specified modifiers contain the mandated modifier.
java.lang.reflect.Modifier
This documentation was auto-generated from the source code of microsphere-java.
java-annotations
java-core
- ACLLoggerFactory
- AbstractArtifactResourceResolver
- AbstractConverter
- AbstractDeque
- AbstractEventDispatcher
- AbstractLogger
- AbstractURLClassPathHandle
- AccessibleObjectUtils
- AdditionalMetadataResourceConfigurationPropertyLoader
- AnnotationUtils
- ArchiveFileArtifactResourceResolver
- ArrayEnumeration
- ArrayStack
- ArrayUtils
- Artifact
- ArtifactDetector
- ArtifactResourceResolver
- Assert
- BannedArtifactClassLoadingExecutor
- BaseUtils
- BeanMetadata
- BeanProperty
- BeanUtils
- ByteArrayToObjectConverter
- CharSequenceComparator
- CharSequenceUtils
- CharsetUtils
- ClassDataRepository
- ClassDefinition
- ClassFileJarEntryFilter
- ClassFilter
- ClassLoaderUtils
- ClassPathResourceConfigurationPropertyLoader
- ClassPathUtils
- ClassUtils
- ClassicProcessIdResolver
- ClassicURLClassPathHandle
- CollectionUtils
- Compatible
- CompositeSubProtocolURLConnectionFactory
- CompositeURLStreamHandlerFactory
- ConditionalEventListener
- ConfigurationProperty
- ConfigurationPropertyGenerator
- ConfigurationPropertyLoader
- ConfigurationPropertyReader
- Configurer
- ConsoleURLConnection
- Constants
- ConstructorDefinition
- ConstructorUtils
- Converter
- Converters
- CustomizedThreadFactory
- DefaultConfigurationPropertyGenerator
- DefaultConfigurationPropertyReader
- DefaultDeserializer
- DefaultEntry
- DefaultSerializer
- DelegatingBlockingQueue
- DelegatingDeque
- DelegatingIterator
- DelegatingQueue
- DelegatingScheduledExecutorService
- DelegatingURLConnection
- DelegatingURLStreamHandlerFactory
- DelegatingWrapper
- Deprecation
- Deserializer
- Deserializers
- DirectEventDispatcher
- DirectoryFileFilter
- EmptyDeque
- EmptyIterable
- EmptyIterator
- EnumerationIteratorAdapter
- EnumerationUtils
- Event
- EventDispatcher
- EventListener
- ExceptionUtils
- ExecutableDefinition
- ExecutableUtils
- ExecutorUtils
- ExtendableProtocolURLStreamHandler
- FastByteArrayInputStream
- FastByteArrayOutputStream
- FieldDefinition
- FieldUtils
- FileChangedEvent
- FileChangedListener
- FileConstants
- FileExtensionFilter
- FileUtils
- FileWatchService
- Filter
- FilterOperator
- FilterUtils
- FormatUtils
- Functional
- GenericEvent
- GenericEventListener
- Handler
- Handler
- HierarchicalClassComparator
- IOFileFilter
- IOUtils
- ImmutableEntry
- IterableAdapter
- IterableUtils
- Iterators
- JDKLoggerFactory
- JSON
- JSONArray
- JSONException
- JSONObject
- JSONStringer
- JSONTokener
- JSONUtils
- JarEntryFilter
- JarUtils
- JavaType
- JmxUtils
- ListUtils
- Listenable
- Lists
- Logger
- LoggerFactory
- LoggingFileChangedListener
- MBeanAttribute
- MBeanAttributeInfoBuilder
- MBeanConstructorInfoBuilder
- MBeanDescribableBuilder
- MBeanExecutableInfoBuilder
- MBeanFeatureInfoBuilder
- MBeanInfoBuilder
- MBeanNotificationInfoBuilder
- MBeanOperationInfoBuilder
- MBeanParameterInfoBuilder
- ManagementUtils
- ManifestArtifactResourceResolver
- MapToPropertiesConverter
- MapUtils
- Maps
- MavenArtifact
- MavenArtifactResourceResolver
- MemberDefinition
- MemberUtils
- MetadataResourceConfigurationPropertyLoader
- MethodDefinition
- MethodHandleUtils
- MethodHandlesLookupUtils
- MethodUtils
- ModernProcessIdResolver
- ModernURLClassPathHandle
- Modifier
- MultiValueConverter
- MultipleType
- MutableInteger
- MutableURLStreamHandlerFactory
- NameFileFilter
- NoOpLogger
- NoOpLoggerFactory
- NoOpURLClassPathHandle
- NumberToByteConverter
- NumberToCharacterConverter
- NumberToDoubleConverter
- NumberToFloatConverter
- NumberToIntegerConverter
- NumberToLongConverter
- NumberToShortConverter
- NumberUtils
- ObjectToBooleanConverter
- ObjectToByteArrayConverter
- ObjectToByteConverter
- ObjectToCharacterConverter
- ObjectToDoubleConverter
- ObjectToFloatConverter
- ObjectToIntegerConverter
- ObjectToLongConverter
- ObjectToOptionalConverter
- ObjectToShortConverter
- ObjectToStringConverter
- PackageNameClassFilter
- PackageNameClassNameFilter
- ParallelEventDispatcher
- ParameterizedTypeImpl
- PathConstants
- Predicates
- Prioritized
- PriorityComparator
- ProcessExecutor
- ProcessIdResolver
- ProcessManager
- PropertiesToStringConverter
- PropertiesUtils
- PropertyConstants
- PropertyResourceBundleControl
- PropertyResourceBundleUtils
- ProtocolConstants
- ProxyUtils
- QueueUtils
- ReadOnlyIterator
- ReflectionUtils
- ReflectiveConfigurationPropertyGenerator
- ReflectiveDefinition
- ResourceConstants
- ReversedDeque
- Scanner
- SecurityUtils
- SeparatorConstants
- Serializer
- Serializers
- ServiceLoaderURLStreamHandlerFactory
- ServiceLoaderUtils
- ServiceLoadingURLClassPathHandle
- SetUtils
- Sets
- Sfl4jLoggerFactory
- ShutdownHookCallbacksThread
- ShutdownHookUtils
- SimpleClassScanner
- SimpleFileScanner
- SimpleJarEntryScanner
- SingletonDeque
- SingletonEnumeration
- SingletonIterator
- StackTraceUtils
- StandardFileWatchService
- StandardURLStreamHandlerFactory
- StopWatch
- StreamArtifactResourceResolver
- Streams
- StringBuilderWriter
- StringConverter
- StringDeserializer
- StringSerializer
- StringToArrayConverter
- StringToBlockingDequeConverter
- StringToBlockingQueueConverter
- StringToBooleanConverter
- StringToByteConverter
- StringToCharArrayConverter
- StringToCharacterConverter
- StringToClassConverter
- StringToCollectionConverter
- StringToDequeConverter
- StringToDoubleConverter
- StringToDurationConverter
- StringToFloatConverter
- StringToInputStreamConverter
- StringToIntegerConverter
- StringToIterableConverter
- StringToListConverter
- StringToLongConverter
- StringToMultiValueConverter
- StringToNavigableSetConverter
- StringToQueueConverter
- StringToSetConverter
- StringToShortConverter
- StringToSortedSetConverter
- StringToStringConverter
- StringToTransferQueueConverter
- StringUtils
- SubProtocolURLConnectionFactory
- SymbolConstants
- SystemUtils
- ThrowableAction
- ThrowableBiConsumer
- ThrowableBiFunction
- ThrowableConsumer
- ThrowableFunction
- ThrowableSupplier
- ThrowableUtils
- TrueClassFilter
- TrueFileFilter
- TypeArgument
- TypeFinder
- TypeUtils
- URLClassPathHandle
- URLUtils
- UnmodifiableDeque
- UnmodifiableIterator
- UnmodifiableQueue
- Utils
- ValueHolder
- Version
- VersionUtils
- VirtualMachineProcessIdResolver
- Wrapper
- WrapperProcessor
jdk-tools
lang-model
- AnnotatedElementJSONElementVisitor
- AnnotationUtils
- ClassUtils
- ConstructorUtils
- ElementUtils
- ExecutableElementComparator
- FieldUtils
- JSONAnnotationValueVisitor
- JSONElementVisitor
- LoggerUtils
- MemberUtils
- MessagerUtils
- MethodUtils
- ResolvableAnnotationValueVisitor
- StringAnnotationValue
- TypeUtils
annotation-processor
- ConfigurationPropertyAnnotationProcessor
- ConfigurationPropertyJSONElementVisitor
- FilerProcessor
- ResourceProcessor
java-test
- AbstractAnnotationProcessingTest
- Ancestor
- AnnotationProcessingTestProcessor
- ArrayTypeModel
- CollectionTypeModel
- Color
- CompilerInvocationInterceptor
- ConfigurationPropertyModel
- DefaultTestService
- GenericTestService
- MapTypeModel
- Model
- Parent
- PrimitiveTypeModel
- SimpleTypeModel
- StringArrayList
- TestAnnotation
- TestService
- TestServiceImpl