Class JGrassGears


  • public class JGrassGears
    extends Object
    Class presenting modules names and classes.
    Since:
    0.7.0
    Author:
    Andrea Antonello (www.hydrologis.com)
    • Field Detail

      • moduleName2Class

        public final Map<String,​Class<?>> moduleName2Class
        A map of all the class names and the class itself.
      • moduleName2Fields

        public final Map<String,​List<ClassField>> moduleName2Fields
        A map of all the class names and their fields.
    • Method Detail

      • getAllFields

        public String[] getAllFields()
      • setAllFields

        public void setAllFields​(String[] allFields)
      • getAllClasses

        public String[] getAllClasses()
      • setAllClasses

        public void setAllClasses​(String[] allClasses)
      • getInstance

        public static JGrassGears getInstance()
        Retrieves the JGrassGears. If it exists, that instance is returned.
        Returns:
        the JGrassGears annotations class.
      • getInstance

        public static JGrassGears getInstance​(URL baseclassUrl)
        Retrieves the JGrassGears for a particular url path.

        When this method is called, the JGrassGears instance is reset.

        Be careful when you use this. This is a workaround needed for eclipse systems, where the url returned by the urlfinder is a bundleresource that would need to be resolved first with rcp tools we do not want to depend on.

        Returns:
        the JGrassGears annotations class.