Class SimpleGroovyType

java.lang.Object
org.codehaus.groovy.tools.groovydoc.SimpleGroovyType
All Implemented Interfaces:
GroovyType

public class SimpleGroovyType extends Object implements GroovyType
Simple immutable GroovyType implementation backed by a type name string.
  • Constructor Details

    • SimpleGroovyType

      public SimpleGroovyType(String typeName)
      Creates a type wrapper for the supplied name.
      Parameters:
      typeName - the type name to expose
  • Method Details

    • typeName

      public String typeName()
      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
    • isPrimitive

      public boolean isPrimitive()
      Indicates whether this type is a Java primitive type.
      Specified by:
      isPrimitive in interface GroovyType
      Returns:
      true if this type is primitive
    • qualifiedTypeName

      public String 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:
      qualifiedTypeName in interface GroovyType
    • simpleTypeName

      public String simpleTypeName()
      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