Class SimpleGroovyDoc
java.lang.Object
org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
- All Implemented Interfaces:
Comparable
,GroovyDoc
- Direct Known Subclasses:
SimpleGroovyPackageDoc
,SimpleGroovyProgramElementDoc
,SimpleGroovyRootDoc
public class SimpleGroovyDoc extends Object implements GroovyDoc
-
Field Summary
Fields Modifier and Type Field Description static int
ANNOTATION_DEF
static int
CLASS_DEF
static int
ENUM_DEF
static int
INTERFACE_DEF
static int
TRAIT_DEF
-
Constructor Summary
Constructors Constructor Description SimpleGroovyDoc(String name)
-
Method Summary
Modifier and Type Method Description static String
calculateFirstSentence(String raw)
String
commentText()
int
compareTo(Object that)
String
firstSentenceCommentText()
String
getRawCommentText()
String
getTypeDescription()
String
getTypeSourceDescription()
boolean
isAnnotationType()
boolean
isAnnotationTypeElement()
boolean
isClass()
boolean
isConstructor()
boolean
isDeprecated()
boolean
isEnum()
boolean
isEnumConstant()
boolean
isError()
boolean
isException()
boolean
isField()
boolean
isIncluded()
boolean
isInterface()
boolean
isMethod()
boolean
isOrdinaryClass()
boolean
isScript()
boolean
isTrait()
String
name()
protected void
setCommentText(String commentText)
void
setDeprecated(boolean deprecated)
protected void
setFirstSentenceCommentText(String firstSentenceCommentText)
void
setRawCommentText(String rawCommentText)
void
setScript(boolean script)
void
setTokenType(int t)
GroovyTag[]
tags()
int
tokenType()
String
toString()
-
Field Details
-
CLASS_DEF
public static final int CLASS_DEF- See Also:
- Constant Field Values
-
TRAIT_DEF
public static final int TRAIT_DEF- See Also:
- Constant Field Values
-
INTERFACE_DEF
public static final int INTERFACE_DEF- See Also:
- Constant Field Values
-
ANNOTATION_DEF
public static final int ANNOTATION_DEF- See Also:
- Constant Field Values
-
ENUM_DEF
public static final int ENUM_DEF- See Also:
- Constant Field Values
-
-
Constructor Details
-
SimpleGroovyDoc
-
-
Method Details
-
name
-
toString
-
setCommentText
-
setFirstSentenceCommentText
-
commentText
- Specified by:
commentText
in interfaceGroovyDoc
-
firstSentenceCommentText
- Specified by:
firstSentenceCommentText
in interfaceGroovyDoc
-
getRawCommentText
- Specified by:
getRawCommentText
in interfaceGroovyDoc
-
setRawCommentText
- Specified by:
setRawCommentText
in interfaceGroovyDoc
-
setScript
public void setScript(boolean script) -
calculateFirstSentence
-
isClass
public boolean isClass() -
isScript
public boolean isScript() -
isTrait
public boolean isTrait() -
isInterface
public boolean isInterface()- Specified by:
isInterface
in interfaceGroovyDoc
-
isAnnotationType
public boolean isAnnotationType()- Specified by:
isAnnotationType
in interfaceGroovyDoc
-
isEnum
public boolean isEnum() -
getTypeDescription
-
getTypeSourceDescription
-
setTokenType
public void setTokenType(int t) -
tokenType
public int tokenType() -
compareTo
- Specified by:
compareTo
in interfaceComparable
-
isAnnotationTypeElement
public boolean isAnnotationTypeElement()- Specified by:
isAnnotationTypeElement
in interfaceGroovyDoc
-
isConstructor
public boolean isConstructor()- Specified by:
isConstructor
in interfaceGroovyDoc
-
isEnumConstant
public boolean isEnumConstant()- Specified by:
isEnumConstant
in interfaceGroovyDoc
-
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecated
in interfaceGroovyDoc
-
isError
public boolean isError() -
isException
public boolean isException()- Specified by:
isException
in interfaceGroovyDoc
-
isField
public boolean isField() -
isIncluded
public boolean isIncluded()- Specified by:
isIncluded
in interfaceGroovyDoc
-
isMethod
public boolean isMethod() -
isOrdinaryClass
public boolean isOrdinaryClass()- Specified by:
isOrdinaryClass
in interfaceGroovyDoc
-
tags
-
setDeprecated
public void setDeprecated(boolean deprecated)
-