|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.ast.ASTNode
org.eclipse.jdt.internal.compiler.ast.Statement
org.eclipse.jdt.internal.compiler.ast.Expression
org.eclipse.jdt.internal.compiler.ast.CastExpression
org.jmlspecs.jml4.ast.JmlCastExpression
public class JmlCastExpression
Field Summary | |
---|---|
boolean |
isExplicitNonNull
|
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.CastExpression |
---|
expectedType, expression, type |
Fields inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
---|
constant, implicitConversion, resolvedType, statementEnd |
Constructor Summary | |
---|---|
JmlCastExpression(Expression expression,
Expression type,
boolean isExplicitNonNull)
|
Method Summary | |
---|---|
static void |
generateNullityTest(CodeStream codeStream,
java.lang.String exceptionType,
java.lang.String msg)
|
boolean |
isDeclaredNonNull()
|
int |
nullStatus(FlowInfo flowInfo)
|
void |
tagAsUnnecessaryCast(Scope scope,
TypeBinding castType)
Record the fact a cast expression got detected as being unnecessary. |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.CastExpression |
---|
analyseCode, checkNeedForArgumentCast, checkNeedForArgumentCasts, checkNeedForArgumentCasts, checkNeedForAssignedCast, checkNeedForCastCast, checkNeedForEnclosingInstanceCast, checkUnsafeCast, generateCode, innermostCastedExpression, isDeclaredMonoNonNull, localVariableBinding, optimizedBooleanConstant, printExpression, resolveType, setExpectedType, tagAsNeedCheckCast, traverse |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Expression |
---|
analyseCode, checkCastTypesCompatibility, checkNPE, computeConversion, generateCode, generateOptimizedBoolean, generateOptimizedStringConcatenation, generateOptimizedStringConcatenationCreation, isCompactableOperation, isConstantValueOfTypeAssignableToType, isConstantValueRepresentable, isTypeReference, markAsNonNull, postConversionType, print, printStatement, resolve, resolveType, resolveTypeExpecting, reusableJSRTarget, toTypeReference, traverse |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.Statement |
---|
branchChainTo, complainIfUnreachable, generateArguments, isEmptyBlock, isValidJavaStatement, resolveCase |
Methods inherited from class org.eclipse.jdt.internal.compiler.ast.ASTNode |
---|
checkInvocationArguments, concreteStatement, isFieldUseDeprecated, isImplicitThis, isMethodUseDeprecated, isSuper, isThis, isTypeUseDeprecated, printAnnotations, printIndent, printModifiers, resolveAnnotations, resolveDeprecatedAnnotations, sourceEnd, sourceStart, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final boolean isExplicitNonNull
Constructor Detail |
---|
public JmlCastExpression(Expression expression, Expression type, boolean isExplicitNonNull)
Method Detail |
---|
public int nullStatus(FlowInfo flowInfo)
nullStatus
in class CastExpression
public boolean isDeclaredNonNull()
isDeclaredNonNull
in class CastExpression
public static void generateNullityTest(CodeStream codeStream, java.lang.String exceptionType, java.lang.String msg)
public void tagAsUnnecessaryCast(Scope scope, TypeBinding castType)
Expression
tagAsUnnecessaryCast
in class CastExpression
Expression.tagAsUnnecessaryCast(Scope, TypeBinding)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |