Package org.codehaus.groovy.groovydoc
Interface GroovyType
- All Known Subinterfaces:
GroovyClassDoc
- All Known Implementing Classes:
ArrayClassDocWrapper,ExternalGroovyClassDoc,SimpleGroovyClassDoc,SimpleGroovyType
public interface GroovyType
Describes a type reference used throughout the Groovydoc model.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this type is a Java primitive type.The qualified name of this type excluding any dimension information.The unqualified name of this type excluding any dimension or nesting information.toString()The qualified name including any dimension information.typeName()The unqualified name of this type excluding any dimension information.
-
Method Details
-
isPrimitive
boolean isPrimitive()Indicates whether this type is a Java primitive type.- Returns:
trueif this type is primitive
-
qualifiedTypeName
String qualifiedTypeName()The qualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "java.lang.String". -
simpleTypeName
String simpleTypeName()The unqualified name of this type excluding any dimension or nesting information. For example, the classOuter.Innerreturns "Inner". -
typeName
String typeName()The unqualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "String". -
toString
String toString()The qualified name including any dimension information. For example, a two-dimensional array of String returns "java.lang.String[][]", and the parameterized typeList<Integer>returns "java.util.List<java.lang.Integer>".
-