Top Description Constructors Methods
org.codehaus.groovy.classgen.asm

public Class StatementMetaTypeChooser

extends Object
implements TypeChooser
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.classgen.asm.TypeChooser
Known Direct Subclasses
org.codehaus.groovy.classgen.asm.sc.StaticTypesTypeChooser
Imports
org.codehaus.groovy.ast.ClassHelper, .ClassNode, .GenericsType, .Variable, org.codehaus.groovy.ast.expr.ClassExpression, .Expression, .VariableExpression

A TypeChooser which is aware of statement metadata.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClassNode
resolveType(final Expression
the expression for which the type must be returned.
exp
,
final ClassNode
the classnode this expression belongs to
current
)

Implements org.codehaus.groovy.classgen.asm.TypeChooser.resolveType.

Resolve the type of an expression.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

StatementMetaTypeChooserback to summary
public StatementMetaTypeChooser()

Method Detail

resolveTypeback to summary
public ClassNode resolveType(final Expression exp, final ClassNode current)

Implements org.codehaus.groovy.classgen.asm.TypeChooser.resolveType.

Doc from org.codehaus.groovy.classgen.asm.TypeChooser.resolveType.

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

Parameters
exp:Expression

the expression for which the type must be returned.

current:ClassNode

the classnode this expression belongs to

Returns:ClassNode

the resolved type.

Annotations
@Override