Class StaticTypesTypeChooser
- java.lang.Object
- 
- org.codehaus.groovy.classgen.asm.StatementMetaTypeChooser
- 
- org.codehaus.groovy.classgen.asm.sc.StaticTypesTypeChooser
 
 
- 
- All Implemented Interfaces:
- TypeChooser
 
 public class StaticTypesTypeChooser extends StatementMetaTypeChooser ATypeChooserwhich reads type information from node metadata generated by the static type checker.
- 
- 
Constructor SummaryConstructors Constructor Description StaticTypesTypeChooser()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassNoderesolveType(Expression exp, ClassNode current)Resolve the type of an expression.
 
- 
- 
- 
Method Detail- 
resolveTypepublic ClassNode resolveType(Expression exp, ClassNode current) Description copied from interface:TypeChooserResolve the type of an expression. Depending on the implementations, the returned type may be the declared type or an inferred type.- Specified by:
- resolveTypein interface- TypeChooser
- Overrides:
- resolveTypein class- StatementMetaTypeChooser
- Parameters:
- exp- the expression for which the type must be returned.
- current- the classnode this expression belongs to
- Returns:
- the resolved type.
 
 
- 
 
-