Package io.microsphere.reflect
Class ClassDefinition
- java.lang.Object
-
- io.microsphere.reflect.ReflectiveDefinition
-
- io.microsphere.reflect.ClassDefinition
-
- All Implemented Interfaces:
java.io.Serializable
public class ClassDefinition extends ReflectiveDefinition
The definition class forClass
- Since:
- 1.0.0
- Author:
- Mercy
- See Also:
Class
,ReflectiveDefinition
, Serialized Form
-
-
Field Summary
-
Fields inherited from class io.microsphere.reflect.ReflectiveDefinition
classLoader, className, deprecation, since
-
-
Constructor Summary
Constructors Constructor Description ClassDefinition(Version since, Deprecation deprecation, java.lang.String className)
ClassDefinition(Version since, java.lang.String className)
ClassDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
ClassDefinition(java.lang.String since, java.lang.String className)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isPresent()
Whether the member is presentjava.lang.String
toString()
-
Methods inherited from class io.microsphere.reflect.ReflectiveDefinition
equals, getClassName, getDeprecation, getResolvedClass, getSince, hashCode, isDeprecated
-
-
-
-
Constructor Detail
-
ClassDefinition
public ClassDefinition(@Nonnull java.lang.String since, @Nonnull java.lang.String className)
- Parameters:
since
- the 'since' versionclassName
- the name of class
-
ClassDefinition
public ClassDefinition(@Nonnull java.lang.String since, @Nullable Deprecation deprecation, @Nonnull java.lang.String className)
- Parameters:
since
- the 'since' versiondeprecation
- the deprecationclassName
- the name of class
-
ClassDefinition
public ClassDefinition(@Nonnull Version since, @Nonnull java.lang.String className)
- Parameters:
since
- the 'since' versionclassName
- the name of class
-
ClassDefinition
public ClassDefinition(@Nonnull Version since, @Nullable Deprecation deprecation, @Nonnull java.lang.String className)
- Parameters:
since
- the 'since' versiondeprecation
- the deprecationclassName
- the name of class
-
-
Method Detail
-
isPresent
public final boolean isPresent()
Description copied from class:ReflectiveDefinition
Whether the member is present- Specified by:
isPresent
in classReflectiveDefinition
- Returns:
true
if present
-
toString
public java.lang.String toString()
- Overrides:
toString
in classReflectiveDefinition
-
-