Class ReflectClass<T>
java.lang.Object
com.github.darksoulq.abyssallib.common.reflection.ReflectClass<T>
-
Method Summary
Modifier and TypeMethodDescriptionconstructor(Class<?>... paramTypes) boolean<V> Result<ReflectField<V>> <V> Result<ReflectField<V>> <V> Result<ReflectField<V>> fieldByType(Class<V> type) List<ReflectField<?>> fields()<V> List<ReflectField<V>> fieldsByType(Class<V> type) <A extends Annotation>
Result<A> getAnnotation(Class<A> annotationClass) Result<ReflectClass<?>> List<ReflectClass<?>> getName()<A extends Annotation>
Result<ReflectAnnotation<A>> getReflectAnnotation(Class<A> annotationClass) Result<ReflectClass<?>> booleanhasAnnotation(Class<? extends Annotation> annotationClass) inthashCode()booleanbooleanbooleanisArray()booleanisEnum()booleanisFinal()booleanbooleanbooleanbooleanisPublic()booleanisRecord()booleanisStatic()<R> Result<ReflectMethod<R>> <R> Result<ReflectMethod<R>> List<ReflectMethod<?>> methods()List<ReflectMethod<?>> toString()
-
Method Details
-
getUnderlyingClass
-
getName
-
getSimpleName
-
isPublic
public boolean isPublic() -
isPrivate
public boolean isPrivate() -
isProtected
public boolean isProtected() -
isStatic
public boolean isStatic() -
isFinal
public boolean isFinal() -
isAbstract
public boolean isAbstract() -
isInterface
public boolean isInterface() -
isEnum
public boolean isEnum() -
isArray
public boolean isArray() -
isAnnotation
public boolean isAnnotation() -
isRecord
public boolean isRecord() -
getSuperclass
-
getComponentType
-
getEnumConstants
-
getInterfaces
-
fields
-
methods
-
constructors
-
annotations
-
recordComponents
-
getAnnotation
-
getReflectAnnotation
public <A extends Annotation> Result<ReflectAnnotation<A>> getReflectAnnotation(Class<A> annotationClass) -
hasAnnotation
-
getAnnotations
-
getDeclaredAnnotations
-
field
-
field
-
fieldsByType
-
fieldByType
-
method
-
method
public <R> Result<ReflectMethod<R>> method(String name, Class<R> expectedReturnType, Class<?>... paramTypes) -
constructor
-
equals
-
hashCode
-
toString
-