Package: org.codehaus.groovy.classgen.asm.sc

## [Java] Class StaticTypesTypeChooser

- org.codehaus.groovy.classgen.asm.sc.StaticTypesTypeChooser

-     public class StaticTypesTypeChooser
      extends StatementMetaTypeChooser

  A TypeChooser which reads type information from node metadata generated by the static type checker.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public ClassNode` | `resolveType(Expression exp, ClassNode current)` * * Resolve the type of an expression. Depending on the implementations, the * returned type may be the declared type or an inferred type. * Parameters: `expression` - the expression for which the type must be returned. * `classNode` - the classnode this expression belongs to * Returns: the resolved type.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class StatementMetaTypeChooser` | `resolveType`

- - ### Method Detail

    - #### public ClassNode resolveType(Expression exp, ClassNode current)

      * * Resolve the type of an expression. Depending on the implementations, the * returned type may be the declared type or an inferred type. *

      Parameters:
        `expression` - the expression for which the type must be returned. *
        `classNode` - the classnode this expression belongs to *
      Returns:
        the resolved type.