TypeChooser which reads
type information from node metadata generated by the static type checker.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static ASTNode | Returns: the target nodethe expression for which to return the target expression exp)The inferred type, in case of a variable expression, can be set on the accessed variable, so we take it instead of the reference. |
| public ClassNode | resolveType(final Expression
the expression for which the type must be returned. exp, final ClassNode the classnode this expression belongs to current)Overrides org. Implements org. |
| StaticTypesTypeChooser | back to summary |
|---|---|
| public StaticTypesTypeChooser() | |
| getTarget | back to summary |
|---|---|
| private static ASTNode getTarget(final Expression exp) The inferred type, in case of a variable expression, can be set on the accessed variable, so we take it instead of the reference.
| |
| resolveType | back to summary |
|---|---|
| public ClassNode resolveType(final Expression exp, final ClassNode current) Overrides org. Implements org. Doc from org. Resolve the type of an expression. Depending on the implementations, the returned type may be the declared type or an inferred type.
| |