Class AnnotatedClass


  • @FeatureToggle(featureID="CM-0013.DO02")
    public class AnnotatedClass
    extends Object
    Data structure to storage annotated FeatureToggle elements. Implements the functionality to compare and sort the elements to process a code generation. Classname & constructor name are the same. Types: CLASS | ENUM | CONSTRUCTOR | METHOD
    • Constructor Detail

      • AnnotatedClass

        public AnnotatedClass​(String type,
                              String namespace,
                              String clazz,
                              List<String> methods)
        Constructor.
        Parameters:
        type - as String
        namespace - as String
        clazz - as String
        methods - as List
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getType

        public String getType()
        Get the annotation type.
        CLASS | ENUM | CONSTRUCTOR | METHOD
        Returns:
        annotation as String
      • getPackageName

        public String getPackageName()
        Get the package.
        Returns:
        packageName as String
      • getClazzName

        public String getClazzName()
        Get the class.
        Returns:
        clazzName as String
      • getMethodNames

        public String getMethodNames()
        Get the method.
        Returns:
        methodName as String
      • addMethodName

        public void addMethodName​(String methodName)
        Extend the List of Methods.
        Parameters:
        methodName - as String
      • updateAnnotationType

        public void updateAnnotationType​(String newType)
        Allows to update the annotation type of the collection. This is needed, when cunstructor and method elements exists and the collection item has the type of method. then it needed to change to a new type constructor.
        Parameters:
        newType - as String