Class ExtensionExtractor
- java.lang.Object
-
- com.djrapitops.plan.extension.extractor.ExtensionExtractor
-
public final class ExtensionExtractor extends java.lang.Object
Implementation detail, for extracting methods fromDataExtension
.This class can be used for testing validity of annotation implementations in your unit tests to avoid runtime errors.
validateAnnotations()
-
-
Constructor Summary
Constructors Constructor Description ExtensionExtractor(DataExtension extension)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
extractAnnotationInformation()
Deprecated.No longer used anywhere, no-op.java.util.List<InvalidateMethod>
getInvalidateMethodAnnotations()
MethodAnnotations
getMethodAnnotations()
Deprecated.java.util.Map<ExtensionMethod.ParameterType,ExtensionMethods>
getMethods()
PluginInfo
getPluginInfo()
static <T extends DataExtension>
java.lang.StringgetPluginName(java.lang.Class<T> extensionClass)
Deprecated.UseDataExtension.getPluginName()
instead.java.util.Collection<Tab>
getTabAnnotations()
java.util.List<TabInfo>
getTabInformation()
java.util.Optional<TabOrder>
getTabOrder()
java.util.List<java.lang.String>
getWarnings()
void
validateAnnotations()
Use this method in an unit test to validate your DataExtension.
-
-
-
Constructor Detail
-
ExtensionExtractor
public ExtensionExtractor(DataExtension extension)
-
-
Method Detail
-
getPluginName
@Deprecated public static <T extends DataExtension> java.lang.String getPluginName(java.lang.Class<T> extensionClass)
Deprecated.UseDataExtension.getPluginName()
instead.
-
validateAnnotations
public void validateAnnotations()
Use this method in an unit test to validate your DataExtension.- Throws:
java.lang.IllegalArgumentException
- If an implementation error is found.
-
extractAnnotationInformation
@Deprecated public void extractAnnotationInformation()
Deprecated.No longer used anywhere, no-op.
-
getWarnings
public java.util.List<java.lang.String> getWarnings()
-
getPluginInfo
public PluginInfo getPluginInfo()
-
getTabOrder
public java.util.Optional<TabOrder> getTabOrder()
-
getTabAnnotations
public java.util.Collection<Tab> getTabAnnotations()
-
getTabInformation
public java.util.List<TabInfo> getTabInformation()
-
getMethodAnnotations
@Deprecated public MethodAnnotations getMethodAnnotations()
Deprecated.
-
getMethods
public java.util.Map<ExtensionMethod.ParameterType,ExtensionMethods> getMethods()
-
getInvalidateMethodAnnotations
public java.util.List<InvalidateMethod> getInvalidateMethodAnnotations()
-
-