public class CastNormalizer extends Object
CatchBlockNormalizer
, CompoundAssignmentNormalizer
,
JsoDevirtualizer
, and LongCastNormalizer
having already run.
Object and String always get a queryId of 0 and 1, respectively. The 0 queryId always means "always succeeds". In practice, we never generate an explicit cast with a queryId of 0; it is only used for array store checking, where the 0 queryId means that anything can be stored into an Object[].
JavaScriptObject has a queryId of -1, which again is only used for array store checking, to ensure that a non-JSO is not stored into a JavaScriptObject[].
Modifier and Type | Method and Description |
---|---|
static void |
exec(JProgram program,
boolean disableCastChecking) |
public static void exec(JProgram program, boolean disableCastChecking)
Copyright © 2018. All rights reserved.