public class SimpleGroovyType
extends Object
implements GroovyType
Simple immutable GroovyType implementation backed by a type name string.
| Constructor and description |
|---|
SimpleGroovyType(String typeName)Creates a type wrapper for the supplied name. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
isPrimitive()Indicates whether this type is a Java primitive type.
|
|
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".
|
|
public String |
simpleTypeName()The unqualified name of this type excluding any dimension or nesting information. For example, the class Outer.Inner returns "Inner".
|
|
public String |
typeName()The unqualified name of this type excluding any dimension information. For example, a two-dimensional array of String returns " String".
|
Creates a type wrapper for the supplied name.
typeName - the type name to exposeIndicates whether this type is a Java primitive type.
true if this type is primitive The qualified name of this type excluding any dimension information.
For example, a two-dimensional array of String returns "java.lang.String".
The unqualified name of this type excluding any dimension or nesting information.
For example, the class Outer.Inner returns "Inner".
The unqualified name of this type excluding any dimension information.
For example, a two-dimensional array of String returns "String".
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.