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 Modifier and Type Method Description void
extractAnnotationInformation()
java.util.List<InvalidateMethod>
getInvalidateMethodAnnotations()
MethodAnnotations
getMethodAnnotations()
PluginInfo
getPluginInfo()
static <T extends DataExtension>
java.lang.StringgetPluginName(java.lang.Class<T> extensionClass)
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
-
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.
-
getPluginName
public static <T extends DataExtension> java.lang.String getPluginName(java.lang.Class<T> extensionClass)
-
extractAnnotationInformation
public void extractAnnotationInformation()
-
getWarnings
public java.util.List<java.lang.String> getWarnings()
-
getPluginInfo
public PluginInfo getPluginInfo()
-
getTabOrder
public java.util.Optional<TabOrder> getTabOrder()
-
getTabInformation
public java.util.List<TabInfo> getTabInformation()
-
getMethodAnnotations
public MethodAnnotations getMethodAnnotations()
-
getInvalidateMethodAnnotations
public java.util.List<InvalidateMethod> getInvalidateMethodAnnotations()
-
-