Package: org.codehaus.groovy.ast

## [Java] Class GenericsType

- org.codehaus.groovy.ast.GenericsType

- This class is used to describe generic type signatures for ClassNodes.

  See Also:
    ClassNode

- - ### Nested Class Summary

    Nested classes
    Modifiers | Name | Description
    --- | --- | ---
    `static class` | `GenericsType.GenericsTypeName` | Represents GenericsType name TODO In order to distinguish GenericsType with same name(See GROOVY-8409), we should add a property to keep the declaring class.

  - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static GenericsType[]` | `EMPTY_ARRAY` |

  - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `String` | `name`
    `boolean` | `placeholder`
    `boolean` | `resolved`
    `ClassNode` | `type`
    `boolean` | `wildcard`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `GenericsType (ClassNode type, ClassNode[] upperBounds, ClassNode lowerBound)`
    `GenericsType (ClassNode basicType)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `ClassNode` | `getLowerBound()`
    `` | `String` | `getName()`
    `` | `ClassNode` | `getType()`
    `` | `ClassNode[]` | `getUpperBounds()`
    `` | `boolean` | `isCompatibleWith(ClassNode classNode)` Tells if the provided class node is compatible with this generic type definition
    `` | `boolean` | `isPlaceholder()`
    `` | `boolean` | `isResolved()`
    `` | `boolean` | `isWildcard()`
    `` | `void` | `setName(String name)`
    `` | `void` | `setPlaceholder(boolean placeholder)`
    `` | `void` | `setResolved(boolean res)`
    `` | `void` | `setType(ClassNode type)`
    `` | `void` | `setWildcard(boolean wildcard)`
    `` | `String` | `toString()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class ASTNode` | `copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getNodeMetaData, getNodeMetaData, getText, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition, visit`

- - ### Field Detail

    - #### public static final GenericsType[] EMPTY_ARRAY

  - ### Property Detail

    - #### String name

    - #### boolean placeholder

    - #### boolean resolved

    - #### ClassNode type

    - #### boolean wildcard

  - ### Constructor Detail

    - #### public GenericsType(ClassNode type, ClassNode[] upperBounds, ClassNode lowerBound)

    - #### public GenericsType(ClassNode basicType)

  - ### Method Detail

    - #### public ClassNode getLowerBound()

    - #### public String getName()

    - #### public ClassNode getType()

    - #### public ClassNode[] getUpperBounds()

    - #### public boolean isCompatibleWith(ClassNode classNode)

      Tells if the provided class node is compatible with this generic type definition

      Parameters:
        `classNode` - the class node to be checked
      Returns:
        true if the class node is compatible with this generics type definition

    - #### public boolean isPlaceholder()

    - #### public boolean isResolved()

    - #### public boolean isWildcard()

    - #### public void setName(String name)

    - #### public void setPlaceholder(boolean placeholder)

    - #### public void setResolved(boolean res)

    - #### public void setType(ClassNode type)

    - #### public void setWildcard(boolean wildcard)

    - #### public String toString()