Class SimpleGroovyType
java.lang.Object
org.codehaus.groovy.tools.groovydoc.SimpleGroovyType
- All Implemented Interfaces:
GroovyType
Simple immutable
GroovyType implementation backed by a type name string.-
Constructor Summary
ConstructorsConstructorDescriptionSimpleGroovyType(String typeName) Creates a type wrapper for the supplied name. -
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.typeName()The unqualified name of this type excluding any dimension information.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyType
toString
-
Constructor Details
-
SimpleGroovyType
Creates a type wrapper for the supplied name.- Parameters:
typeName- the type name to expose
-
-
Method Details
-
typeName
The unqualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "String".- Specified by:
typeNamein interfaceGroovyType
-
isPrimitive
public boolean isPrimitive()Indicates whether this type is a Java primitive type.- Specified by:
isPrimitivein interfaceGroovyType- Returns:
trueif this type is primitive
-
qualifiedTypeName
The qualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns "java.lang.String".- Specified by:
qualifiedTypeNamein interfaceGroovyType
-
simpleTypeName
The unqualified name of this type excluding any dimension or nesting information. For example, the classOuter.Innerreturns "Inner".- Specified by:
simpleTypeNamein interfaceGroovyType
-