summaryrefslogtreecommitdiff
path: root/java/JoelibDescriptorInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/JoelibDescriptorInfo.java')
-rw-r--r--java/JoelibDescriptorInfo.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/java/JoelibDescriptorInfo.java b/java/JoelibDescriptorInfo.java
new file mode 100644
index 0000000..851d650
--- /dev/null
+++ b/java/JoelibDescriptorInfo.java
@@ -0,0 +1,15 @@
+import joelib2.feature.FeatureHelper;
+
+class JoelibDescriptorInfo {
+ public static void main(String[] args) {
+ FeatureHelper helper = FeatureHelper.instance();
+ System.out.println("---"); // document separator for Joelib debug messages
+ for (Object feature : helper.getNativeFeatures() ) {
+ System.out.println("- :java_class: \""+feature.toString()+"\"");
+ // methods for accessing feature descriptions e.g. with
+ // FeatureFactory.instance().getFeature(feature.toString()).getDescription().getText() or
+ // FeatureFactory.instance().getFeature(feature.toString()).getDescription().getHtml()
+ // are defunct
+ }
+ }
+}