| Package | Description |
|---|---|
| org.eclipse.jdt.internal.compiler | |
| org.eclipse.jdt.internal.compiler.ast | |
| org.eclipse.jdt.internal.compiler.problem |
| Modifier and Type | Method and Description |
|---|---|
void |
ASTVisitor.endVisit(CastExpression castExpression,
BlockScope scope) |
boolean |
ASTVisitor.visit(CastExpression castExpression,
BlockScope scope) |
| Modifier and Type | Method and Description |
|---|---|
static void |
CastExpression.checkNeedForAssignedCast(BlockScope scope,
TypeBinding expectedType,
CastExpression rhs)
Complain if assigned expression is cast, but not actually used as such, e.g.
|
static void |
CastExpression.checkNeedForCastCast(BlockScope scope,
CastExpression enclosingCast)
Complain if cast expression is cast, but not actually needed, int i = (int)(Integer) 12;
Note that this (int) cast is however needed: Integer i = 0; char c = (char)((int) i);
|
| Modifier and Type | Method and Description |
|---|---|
void |
ProblemReporter.typeCastError(CastExpression expression,
TypeBinding leftType,
TypeBinding rightType) |
void |
ProblemReporter.unnecessaryCast(CastExpression castExpression) |
void |
ProblemReporter.unsafeCast(CastExpression castExpression,
Scope scope) |
Copyright © 2013. All rights reserved.