Package org.codehaus.groovy.classgen.asm
Class StatementMetaTypeChooser
java.lang.Object
org.codehaus.groovy.classgen.asm.StatementMetaTypeChooser
- All Implemented Interfaces:
TypeChooser
- Direct Known Subclasses:
StaticTypesTypeChooser
A
TypeChooser
which is aware of statement metadata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveType
(Expression exp, ClassNode current) Resolve the type of an expression.
-
Constructor Details
-
StatementMetaTypeChooser
public StatementMetaTypeChooser()
-
-
Method Details
-
resolveType
Description copied from interface:TypeChooser
Resolve the type of an expression. Depending on the implementations, the returned type may be the declared type or an inferred type.- Specified by:
resolveType
in interfaceTypeChooser
- Parameters:
exp
- the expression for which the type must be returned.current
- the classnode this expression belongs to- Returns:
- the resolved type.
-