Class ClassElement
java.lang.Object
studio.mevera.imperat.annotations.base.element.ParseElement<Class<?>>
studio.mevera.imperat.annotations.base.element.ClassElement
- All Implemented Interfaces:
Iterable<Annotation>,AnnotatedElement
-
Field Summary
Fields inherited from class studio.mevera.imperat.annotations.base.element.ParseElement
annotations, element, parent, parser -
Constructor Summary
ConstructorsConstructorDescriptionClassElement(@NotNull AnnotationParser<S> parser, @NotNull ClassElement parent, @NotNull Class<?> element) ClassElement(@NotNull AnnotationParser<S> parser, @Nullable ClassElement parent, @NotNull Class<?> element, @NotNull Object instance) -
Method Summary
Modifier and TypeMethodDescription<S extends Source,R>
Raccept(CommandClassVisitor<S, R> visitor) voidaddChild(ParseElement<?> element) @Nullable ParseElement<?>getChildElement(Predicate<ParseElement<?>> predicate) Set<ParseElement<?>>getName()booleanbooleanMethods inherited from class studio.mevera.imperat.annotations.base.element.ParseElement
equals, getAnnotation, getAnnotations, getDeclaredAnnotations, getElement, getParent, hashCode, iterator, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresentMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClassElement
public ClassElement(@NotNull @NotNull AnnotationParser<S> parser, @NotNull @NotNull ClassElement parent, @NotNull @NotNull Class<?> element) -
ClassElement
public ClassElement(@NotNull @NotNull AnnotationParser<S> parser, @Nullable @Nullable ClassElement parent, @NotNull @NotNull Class<?> element, @NotNull @NotNull Object instance)
-
-
Method Details
-
isStaticClass
public boolean isStaticClass() -
getObjectInstance
-
accept
-
getChildElement
-
addChild
-
isRootClass
public boolean isRootClass() -
getName
- Specified by:
getNamein classParseElement<Class<?>>
-
getSimpleName
-
getChildren
-