Class SimpleGroovyClassDoc

All Implemented Interfaces:
java.lang.Comparable, GroovyClassDoc, GroovyDoc, GroovyProgramElementDoc, GroovyType

public class SimpleGroovyClassDoc
extends SimpleGroovyAbstractableElementDoc
implements GroovyClassDoc
  • Field Details

    • TAG_REGEX

      public static final java.util.regex.Pattern TAG_REGEX
    • DOCROOT_PATTERN2

      public static final java.lang.String DOCROOT_PATTERN2
      See Also:
      Constant Field Values
    • DOCROOT_PATTERN

      public static final java.lang.String DOCROOT_PATTERN
      See Also:
      Constant Field Values
    • LITERAL_REGEX

      public static final java.util.regex.Pattern LITERAL_REGEX
    • CODE_REGEX

      public static final java.util.regex.Pattern CODE_REGEX
    • REF_LABEL_REGEX

      public static final java.util.regex.Pattern REF_LABEL_REGEX
    • NAME_ARGS_REGEX

      public static final java.util.regex.Pattern NAME_ARGS_REGEX
    • SPLIT_ARGS_REGEX

      public static final java.util.regex.Pattern SPLIT_ARGS_REGEX
  • Constructor Details

    • SimpleGroovyClassDoc

      public SimpleGroovyClassDoc​(java.util.List<java.lang.String> importedClassesAndPackages, java.util.Map<java.lang.String,​java.lang.String> aliases, java.lang.String name, java.util.List<LinkArgument> links)
    • SimpleGroovyClassDoc

      public SimpleGroovyClassDoc​(java.util.List<java.lang.String> importedClassesAndPackages, java.util.Map<java.lang.String,​java.lang.String> aliases, java.lang.String name)
    • SimpleGroovyClassDoc

      public SimpleGroovyClassDoc​(java.util.List<java.lang.String> importedClassesAndPackages, java.lang.String name)
  • Method Details

    • constructors

      public GroovyConstructorDoc[] constructors()
      returns a sorted array of constructors
      Specified by:
      constructors in interface GroovyClassDoc
    • add

      public boolean add​(GroovyConstructorDoc constructor)
    • getOuter

      public GroovyClassDoc getOuter()
    • setOuter

      public void setOuter​(GroovyClassDoc outer)
    • isGroovy

      public boolean isGroovy()
    • setGroovy

      public void setGroovy​(boolean isgroovy)
    • innerClasses

      public GroovyClassDoc[] innerClasses()
      returns a sorted array of nested classes and interfaces
      Specified by:
      innerClasses in interface GroovyClassDoc
    • addNested

      public boolean addNested​(GroovyClassDoc nestedClass)
    • fields

      public GroovyFieldDoc[] fields()
      returns a sorted array of fields
      Specified by:
      fields in interface GroovyClassDoc
    • add

      public boolean add​(GroovyFieldDoc field)
    • properties

      public GroovyFieldDoc[] properties()
      returns a sorted array of properties
      Specified by:
      properties in interface GroovyClassDoc
    • addProperty

      public boolean addProperty​(GroovyFieldDoc property)
    • enumConstants

      public GroovyFieldDoc[] enumConstants()
      returns a sorted array of enum constants
      Specified by:
      enumConstants in interface GroovyClassDoc
    • addEnumConstant

      public boolean addEnumConstant​(GroovyFieldDoc field)
    • methods

      public GroovyMethodDoc[] methods()
      returns a sorted array of methods
      Specified by:
      methods in interface GroovyClassDoc
    • add

      public boolean add​(GroovyMethodDoc method)
    • getSuperClassName

      public java.lang.String getSuperClassName()
    • setSuperClassName

      public void setSuperClassName​(java.lang.String className)
    • superclass

      public GroovyClassDoc superclass()
      Specified by:
      superclass in interface GroovyClassDoc
    • setSuperClass

      public void setSuperClass​(GroovyClassDoc doc)
    • getFullPathName

      public java.lang.String getFullPathName()
      Specified by:
      getFullPathName in interface GroovyClassDoc
    • setFullPathName

      public void setFullPathName​(java.lang.String fullPathName)
    • getRelativeRootPath

      public java.lang.String getRelativeRootPath()
      Specified by:
      getRelativeRootPath in interface GroovyClassDoc
    • getParentClasses

      public java.util.List<GroovyClassDoc> getParentClasses()
    • getParentInterfaces

      public java.util.Set<GroovyClassDoc> getParentInterfaces()
    • getDocUrl

      public java.lang.String getDocUrl​(java.lang.String type)
    • getDocUrl

      public java.lang.String getDocUrl​(java.lang.String type, boolean full)
    • getDocUrl

      public static java.lang.String getDocUrl​(java.lang.String type, boolean full, java.util.List<LinkArgument> links, java.lang.String relativePath, GroovyRootDoc rootDoc, SimpleGroovyClassDoc classDoc)
    • constructors

      public GroovyConstructorDoc[] constructors​(boolean filter)
      Specified by:
      constructors in interface GroovyClassDoc
    • definesSerializableFields

      public boolean definesSerializableFields()
      Specified by:
      definesSerializableFields in interface GroovyClassDoc
    • fields

      public GroovyFieldDoc[] fields​(boolean filter)
      Specified by:
      fields in interface GroovyClassDoc
    • findClass

      public GroovyClassDoc findClass​(java.lang.String className)
      Specified by:
      findClass in interface GroovyClassDoc
    • importedClasses

      public GroovyClassDoc[] importedClasses()
      Specified by:
      importedClasses in interface GroovyClassDoc
    • importedPackages

      public GroovyPackageDoc[] importedPackages()
      Specified by:
      importedPackages in interface GroovyClassDoc
    • innerClasses

      public GroovyClassDoc[] innerClasses​(boolean filter)
      Specified by:
      innerClasses in interface GroovyClassDoc
    • interfaces

      public GroovyClassDoc[] interfaces()
      Specified by:
      interfaces in interface GroovyClassDoc
    • interfaceTypes

      public GroovyType[] interfaceTypes()
      Specified by:
      interfaceTypes in interface GroovyClassDoc
    • isExternalizable

      public boolean isExternalizable()
      Specified by:
      isExternalizable in interface GroovyClassDoc
    • isSerializable

      public boolean isSerializable()
      Specified by:
      isSerializable in interface GroovyClassDoc
    • methods

      public GroovyMethodDoc[] methods​(boolean filter)
      Specified by:
      methods in interface GroovyClassDoc
    • serializableFields

      public GroovyFieldDoc[] serializableFields()
      Specified by:
      serializableFields in interface GroovyClassDoc
    • serializationMethods

      public GroovyMethodDoc[] serializationMethods()
      Specified by:
      serializationMethods in interface GroovyClassDoc
    • subclassOf

      public boolean subclassOf​(GroovyClassDoc gcd)
      Specified by:
      subclassOf in interface GroovyClassDoc
    • superclassType

      public GroovyType superclassType()
      Specified by:
      superclassType in interface GroovyClassDoc
    • isPrimitive

      public boolean isPrimitive()
      Specified by:
      isPrimitive in interface GroovyType
    • qualifiedTypeName

      public java.lang.String qualifiedTypeName()
      Description copied from interface: GroovyType
      The qualified name of this type excluding any dimension information. For example, a two dimensional array of String returns "java.lang.String".
      Specified by:
      qualifiedTypeName in interface GroovyType
    • simpleTypeName

      public java.lang.String simpleTypeName()
      Description copied from interface: GroovyType
      The unqualified name of this type excluding any dimension or nesting information. For example, the class Outer.Inner returns "Inner".
      Specified by:
      simpleTypeName in interface GroovyType
    • typeName

      public java.lang.String typeName()
      Description copied from interface: GroovyType
      The unqualified name of this type excluding any dimension information. For example, a two dimensional array of String returns "String".
      Specified by:
      typeName in interface GroovyType
    • addInterfaceName

      public void addInterfaceName​(java.lang.String className)
    • firstSentenceCommentText

      public java.lang.String firstSentenceCommentText()
      Specified by:
      firstSentenceCommentText in interface GroovyDoc
      Overrides:
      firstSentenceCommentText in class SimpleGroovyDoc
    • commentText

      public java.lang.String commentText()
      Specified by:
      commentText in interface GroovyDoc
      Overrides:
      commentText in class SimpleGroovyDoc
    • replaceTags

      public java.lang.String replaceTags​(java.lang.String comment)
    • replaceAllTags

      public java.lang.String replaceAllTags​(java.lang.String self, java.lang.String s1, java.lang.String s2, java.util.regex.Pattern regex)
    • replaceAllTags

      public static java.lang.String replaceAllTags​(java.lang.String self, java.lang.String s1, java.lang.String s2, java.util.regex.Pattern regex, java.util.List<LinkArgument> links, java.lang.String relPath, GroovyRootDoc rootDoc, SimpleGroovyClassDoc classDoc)
    • replaceAllTagsCollated

      public java.lang.String replaceAllTagsCollated​(java.lang.String self, java.lang.String preKey, java.lang.String postKey, java.lang.String valueSeparator, java.lang.String postValues, java.util.regex.Pattern regex)
    • encodeAngleBracketsInTagBody

      public static java.lang.String encodeAngleBracketsInTagBody​(java.lang.String text, java.util.regex.Pattern regex)
      Replaces angle brackets inside a tag.
      Parameters:
      text - GroovyDoc text to process
      regex - has to capture tag name in group 1 and tag body in group 2
    • encodeAngleBrackets

      public static java.lang.String encodeAngleBrackets​(java.lang.String text)
    • encodeSpecialSymbols

      public static java.lang.String encodeSpecialSymbols​(java.lang.String text)
    • decodeSpecialSymbols

      public static java.lang.String decodeSpecialSymbols​(java.lang.String text)
    • setNameWithTypeArgs

      public void setNameWithTypeArgs​(java.lang.String nameWithTypeArgs)
    • getNameWithTypeArgs

      public java.lang.String getNameWithTypeArgs()