Class ClassModel

    • Constructor Detail

      • ClassModel

        public ClassModel()
      • ClassModel

        public ClassModel​(String name)
        Parameters:
        name - (unqualified) class name
      • ClassModel

        public ClassModel​(String name,
                          String superclass)
        Parameters:
        name - (unqualified) class name
        superclass - fully qualified name of super class
    • Method Detail

      • isFinal

        public boolean isFinal()
      • setFinal

        public void setFinal​(boolean aFinal)
      • isDynamic

        public boolean isDynamic()
      • setDynamic

        public void setDynamic​(boolean dynamic)
      • isInterface

        public boolean isInterface()
      • setInterface

        public void setInterface​(boolean value)
      • getSuperclass

        public String getSuperclass()
      • setSuperclass

        public void setSuperclass​(String superclass)
      • getInterfaces

        public List<String> getInterfaces()
      • setInterfaces

        public void setInterfaces​(List<String> interfaces)
      • addInterface

        public void addInterface​(String interfaceName)
      • getAnnotationCode

        public String getAnnotationCode()
      • setAnnotationCode

        public void setAnnotationCode​(String annotationCode)
      • addAnnotationCode

        public void addAnnotationCode​(String code)
      • getBodyCode

        public String getBodyCode()
      • setBodyCode

        public void setBodyCode​(String bodyCode)
      • addBodyCode

        public void addBodyCode​(String code)
      • addMember

        public MemberModel addMember​(MemberModel member)
        Adds a member to this class model and returns the member that is replaced by the new member if applicable.
        Parameters:
        member - the new member to add
        Returns:
        the old member that has been replaced by the new member or null
      • removeMember

        public boolean removeMember​(MemberModel memberModel)
      • createConstructor

        public MethodModel createConstructor()
      • findPropertyWithAnnotation

        public MemberModel findPropertyWithAnnotation​(boolean isStatic,
                                                      String annotationName)
      • findPropertiesWithAnnotation

        public Set<MemberModel> findPropertiesWithAnnotation​(boolean isStatic,
                                                             String annotationName)