TypeChooser
public class StaticTypesTypeChooser extends StatementMetaTypeChooser
TypeChooser
which reads type information from node metadata
generated by the CompileStatic
annotation.Constructor | Description |
---|---|
StaticTypesTypeChooser() |
Modifier and Type | Method | Description |
---|---|---|
ClassNode |
resolveType(Expression exp,
ClassNode current) |
Resolve the type of an expression.
|
public ClassNode resolveType(Expression exp, ClassNode current)
TypeChooser
resolveType
in interface TypeChooser
resolveType
in class StatementMetaTypeChooser
exp
- the expression for which the type must be returned.current
- the classnode this expression belongs to