Class SimpleGroovyDoc

java.lang.Object
org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
All Implemented Interfaces:
Comparable<GroovyDoc>, GroovyDoc
Direct Known Subclasses:
SimpleGroovyPackageDoc, SimpleGroovyProgramElementDoc, SimpleGroovyRootDoc

public class SimpleGroovyDoc extends Object implements GroovyDoc
  • Field Details

  • Constructor Details

    • SimpleGroovyDoc

      public SimpleGroovyDoc(String name)
  • Method Details

    • name

      public String name()
      Specified by:
      name in interface GroovyDoc
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setCommentText

      protected void setCommentText(String commentText)
    • setFirstSentenceCommentText

      protected void setFirstSentenceCommentText(String firstSentenceCommentText)
    • commentText

      public String commentText()
      Specified by:
      commentText in interface GroovyDoc
    • firstSentenceCommentText

      public String firstSentenceCommentText()
      Specified by:
      firstSentenceCommentText in interface GroovyDoc
    • getRawCommentText

      public String getRawCommentText()
      Specified by:
      getRawCommentText in interface GroovyDoc
    • setRawCommentText

      public void setRawCommentText(String rawCommentText)
      Specified by:
      setRawCommentText in interface GroovyDoc
    • setScript

      public void setScript(boolean script)
    • calculateFirstSentence

      public static String calculateFirstSentence(String raw)
    • isClass

      public boolean isClass()
      Specified by:
      isClass in interface GroovyDoc
    • isScript

      public boolean isScript()
    • isTrait

      public boolean isTrait()
    • isInterface

      public boolean isInterface()
      Specified by:
      isInterface in interface GroovyDoc
    • isAnnotationType

      public boolean isAnnotationType()
      Specified by:
      isAnnotationType in interface GroovyDoc
    • isEnum

      public boolean isEnum()
      Specified by:
      isEnum in interface GroovyDoc
    • getTypeDescription

      public String getTypeDescription()
    • getTypeSourceDescription

      public String getTypeSourceDescription()
    • setTokenType

      public void setTokenType(int t)
    • tokenType

      public int tokenType()
    • compareTo

      public int compareTo(GroovyDoc that)
      Specified by:
      compareTo in interface Comparable<GroovyDoc>
    • isAnnotationTypeElement

      public boolean isAnnotationTypeElement()
      Specified by:
      isAnnotationTypeElement in interface GroovyDoc
    • isConstructor

      public boolean isConstructor()
      Specified by:
      isConstructor in interface GroovyDoc
    • isEnumConstant

      public boolean isEnumConstant()
      Specified by:
      isEnumConstant in interface GroovyDoc
    • isDeprecated

      public boolean isDeprecated()
      Specified by:
      isDeprecated in interface GroovyDoc
    • isError

      public boolean isError()
      Specified by:
      isError in interface GroovyDoc
    • isException

      public boolean isException()
      Specified by:
      isException in interface GroovyDoc
    • isField

      public boolean isField()
      Specified by:
      isField in interface GroovyDoc
    • isIncluded

      public boolean isIncluded()
      Specified by:
      isIncluded in interface GroovyDoc
    • isMethod

      public boolean isMethod()
      Specified by:
      isMethod in interface GroovyDoc
    • isOrdinaryClass

      public boolean isOrdinaryClass()
      Specified by:
      isOrdinaryClass in interface GroovyDoc
    • tags

      public GroovyTag[] tags()
    • setDeprecated

      public void setDeprecated(boolean deprecated)