public class ConditionalFlowInfo extends FlowInfo
| Modifier and Type | Field and Description |
|---|---|
FlowInfo |
initsWhenFalse |
FlowInfo |
initsWhenTrue |
DEAD_END, FREE_TYPEVARIABLE, NON_NULL, NULL, NULL_FLAG_MASK, POTENTIALLY_NON_NULL, POTENTIALLY_NULL, POTENTIALLY_UNKNOWN, REACHABLE, tagBits, UNKNOWN, UNREACHABLE, UNREACHABLE_BY_NULLANALYSIS, UNREACHABLE_OR_DEAD, UNROOTED| Modifier and Type | Method and Description |
|---|---|
FlowInfo |
addInitializationsFrom(FlowInfo otherInits)
Add other inits to this flow info, then return this.
|
FlowInfo |
addNullInfoFrom(FlowInfo otherInits)
Add all null information from otherInits to this flow info and return this.
|
FlowInfo |
addPotentialInitializationsFrom(FlowInfo otherInits)
Compose other inits over this flow info, then return this.
|
FlowInfo |
asNegatedCondition() |
FlowInfo |
copy()
Return a deep copy of the current instance.
|
boolean |
hasNullInfoFor(LocalVariableBinding local)
Check if any null info has been recorded for a given local variable.
|
FlowInfo |
initsWhenFalse()
Return the flow info that would result from the path associated to the
value false for the condition expression that generated this flow info.
|
FlowInfo |
initsWhenTrue()
Return the flow info that would result from the path associated to the
value true for the condition expression that generated this flow info.
|
boolean |
isDefinitelyAssigned(FieldBinding field)
Check status of definite assignment for a field.
|
boolean |
isDefinitelyAssigned(LocalVariableBinding local)
Check status of definite assignment for a local.
|
boolean |
isDefinitelyNonNull(LocalVariableBinding local)
Check status of definite non-null value for a given local variable.
|
boolean |
isDefinitelyNull(LocalVariableBinding local)
Check status of definite null value for a given local variable.
|
boolean |
isDefinitelyUnknown(LocalVariableBinding local)
Check status of definite unknown value for a given local variable.
|
boolean |
isPotentiallyAssigned(FieldBinding field)
Check status of potential assignment for a field.
|
boolean |
isPotentiallyAssigned(LocalVariableBinding local)
Check status of potential assignment for a local variable.
|
boolean |
isPotentiallyNonNull(LocalVariableBinding local)
Check status of potential null assignment for a local.
|
boolean |
isPotentiallyNull(LocalVariableBinding local)
Check status of potential null assignment for a local.
|
boolean |
isPotentiallyUnknown(LocalVariableBinding local)
Return true if the given local may have been assigned to an unknown value.
|
boolean |
isProtectedNonNull(LocalVariableBinding local)
Return true if the given local is protected by a test against a non null
value.
|
boolean |
isProtectedNull(LocalVariableBinding local)
Return true if the given local is protected by a test against null.
|
void |
markAsComparedEqualToNonNull(LocalVariableBinding local)
Record that a local variable got checked to be non null.
|
void |
markAsComparedEqualToNull(LocalVariableBinding local)
Record that a local variable got checked to be null.
|
void |
markAsDefinitelyAssigned(FieldBinding field)
Record a field got definitely assigned.
|
void |
markAsDefinitelyAssigned(LocalVariableBinding local)
Record a local got definitely assigned.
|
void |
markAsDefinitelyNonNull(LocalVariableBinding local)
Record a local got definitely assigned to a non-null value.
|
void |
markAsDefinitelyNull(LocalVariableBinding local)
Record a local got definitely assigned to null.
|
void |
markAsDefinitelyUnknown(LocalVariableBinding local)
Record a local got definitely assigned to an unknown value.
|
void |
markPotentiallyNonNullBit(LocalVariableBinding local)
Record a local may have got assigned to non-null (set the bit on existing info).
|
void |
markPotentiallyNullBit(LocalVariableBinding local)
Record a local may have got assigned to null (set the bit on existing info).
|
void |
markPotentiallyUnknownBit(LocalVariableBinding local)
Record a local may have got assigned to unknown (set the bit on existing info).
|
UnconditionalFlowInfo |
mergeDefiniteInitsWith(UnconditionalFlowInfo otherInits) |
UnconditionalFlowInfo |
mergedWith(UnconditionalFlowInfo otherInits)
Return the intersection of this and otherInits, that is
one of:
the receiver updated in the following way:
intersection of definitely assigned variables,
union of potentially assigned variables,
similar operations for null,
or the receiver or otherInits if the other one is non
reachable.
otherInits is not affected, and is not returned either (no
need to protect the result).
|
UnconditionalFlowInfo |
nullInfoLessUnconditionalCopy()
Return a copy of this unconditional flow info, deprived from its null
info.
|
void |
resetAssignmentInfo(LocalVariableBinding local)
Resets the definite and potential initialization info for the given local variable
|
void |
resetNullInfo(LocalVariableBinding local)
Reset all null-information about a given local.
|
FlowInfo |
safeInitsWhenTrue()
Return a flow info that carries the same information as the result of
initsWhenTrue, but warrantied to be different
from this.Caveat: side effects on the result may affect components of this. |
FlowInfo |
setReachMode(int reachMode)
Set this flow info reach mode and return this.
|
java.lang.String |
toString() |
UnconditionalFlowInfo |
unconditionalCopy()
Return a new flow info that holds the same information as this would after
a call to unconditionalInits, but leaving this info unaffected.
|
UnconditionalFlowInfo |
unconditionalFieldLessCopy()
Return a new flow info that holds the same information as this would after
a call to
unconditionalInits followed by the
erasure of fields specific information, but leaving this flow info unaffected. |
UnconditionalFlowInfo |
unconditionalInits()
Return a flow info that merges the possible paths of execution described by
this flow info.
|
UnconditionalFlowInfo |
unconditionalInitsWithoutSideEffect()
Return a new flow info that holds the same information as this would after
a call to
unconditionalInits, but leaving
this info unaffected. |
cannotBeDefinitelyNullOrNonNull, cannotBeNull, canOnlyBeNull, conditional, initial, markNullStatus, mergedOptimizedBranches, mergedOptimizedBranchesIfElse, mergeNullStatus, nullStatus, reachMode, tagBitsToNullStatuspublic FlowInfo initsWhenTrue
public FlowInfo initsWhenFalse
public FlowInfo addInitializationsFrom(FlowInfo otherInits)
FlowInfoaddInitializationsFrom in class FlowInfootherInits - other inits to add to thispublic FlowInfo addNullInfoFrom(FlowInfo otherInits)
FlowInfoaddNullInfoFrom in class FlowInfopublic FlowInfo addPotentialInitializationsFrom(FlowInfo otherInits)
FlowInfoaddInitializationsFrom.addPotentialInitializationsFrom in class FlowInfootherInits - other inits to compose over thispublic FlowInfo asNegatedCondition()
asNegatedCondition in class FlowInfopublic FlowInfo copy()
FlowInfopublic FlowInfo initsWhenFalse()
FlowInfoConditionalFlowInfo. May have a side effect on subparts of this flow
info (subtrees get merged).initsWhenFalse in class FlowInfopublic FlowInfo initsWhenTrue()
FlowInfoConditionalFlowInfo. May have a side effect on subparts of this flow
info (subtrees get merged).initsWhenTrue in class FlowInfopublic boolean isDefinitelyAssigned(FieldBinding field)
FlowInfoisDefinitelyAssigned in class FlowInfopublic boolean isDefinitelyAssigned(LocalVariableBinding local)
FlowInfoisDefinitelyAssigned in class FlowInfopublic boolean isDefinitelyNonNull(LocalVariableBinding local)
FlowInfoisDefinitelyNonNull in class FlowInfolocal - the variable to ckeckpublic boolean isDefinitelyNull(LocalVariableBinding local)
FlowInfoisDefinitelyNull in class FlowInfolocal - the variable to ckeckpublic boolean isDefinitelyUnknown(LocalVariableBinding local)
FlowInfoisDefinitelyUnknown in class FlowInfolocal - the variable to ckeckpublic boolean hasNullInfoFor(LocalVariableBinding local)
FlowInfohasNullInfoFor in class FlowInfopublic boolean isPotentiallyAssigned(FieldBinding field)
FlowInfoisPotentiallyAssigned in class FlowInfopublic boolean isPotentiallyAssigned(LocalVariableBinding local)
FlowInfoisPotentiallyAssigned in class FlowInfopublic boolean isPotentiallyNonNull(LocalVariableBinding local)
FlowInfoisPotentiallyNonNull in class FlowInfolocal - LocalVariableBinding - the binding for the checked localpublic boolean isPotentiallyNull(LocalVariableBinding local)
FlowInfoisPotentiallyNull in class FlowInfolocal - LocalVariableBinding - the binding for the checked localpublic boolean isPotentiallyUnknown(LocalVariableBinding local)
FlowInfoisPotentiallyUnknown in class FlowInfolocal - the local to checkpublic boolean isProtectedNonNull(LocalVariableBinding local)
FlowInfoisProtectedNonNull in class FlowInfolocal - the local to checkpublic boolean isProtectedNull(LocalVariableBinding local)
FlowInfoisProtectedNull in class FlowInfolocal - the local to checkpublic void markAsComparedEqualToNonNull(LocalVariableBinding local)
FlowInfomarkAsComparedEqualToNonNull in class FlowInfolocal - the checked local variablepublic void markAsComparedEqualToNull(LocalVariableBinding local)
FlowInfomarkAsComparedEqualToNull in class FlowInfolocal - the checked local variablepublic void markAsDefinitelyAssigned(FieldBinding field)
FlowInfomarkAsDefinitelyAssigned in class FlowInfopublic void markAsDefinitelyAssigned(LocalVariableBinding local)
FlowInfomarkAsDefinitelyAssigned in class FlowInfopublic void markAsDefinitelyNonNull(LocalVariableBinding local)
FlowInfomarkAsDefinitelyNonNull in class FlowInfopublic void markAsDefinitelyNull(LocalVariableBinding local)
FlowInfomarkAsDefinitelyNull in class FlowInfopublic void resetNullInfo(LocalVariableBinding local)
FlowInforesetNullInfo in class FlowInfopublic void markPotentiallyNullBit(LocalVariableBinding local)
FlowInfomarkPotentiallyNullBit in class FlowInfopublic void markPotentiallyNonNullBit(LocalVariableBinding local)
FlowInfomarkPotentiallyNonNullBit in class FlowInfopublic void markAsDefinitelyUnknown(LocalVariableBinding local)
FlowInfomarkAsDefinitelyUnknown in class FlowInfopublic void markPotentiallyUnknownBit(LocalVariableBinding local)
FlowInfomarkPotentiallyUnknownBit in class FlowInfopublic FlowInfo setReachMode(int reachMode)
FlowInfosetReachMode in class FlowInforeachMode - one of REACHABLE, UNREACHABLE_OR_DEAD,
UNREACHABLE_BY_NULLANALYSIS or UNREACHABLEpublic UnconditionalFlowInfo mergedWith(UnconditionalFlowInfo otherInits)
FlowInfomergedWith in class FlowInfootherInits - the flow info to merge with thispublic UnconditionalFlowInfo mergeDefiniteInitsWith(UnconditionalFlowInfo otherInits)
mergeDefiniteInitsWith in class FlowInfopublic UnconditionalFlowInfo nullInfoLessUnconditionalCopy()
FlowInfoDEAD_END is returned unmodified.nullInfoLessUnconditionalCopy in class FlowInfopublic FlowInfo safeInitsWhenTrue()
FlowInfoinitsWhenTrue, but warrantied to be different
from this.safeInitsWhenTrue in class FlowInfopublic UnconditionalFlowInfo unconditionalCopy()
FlowInfounconditionalCopy in class FlowInfopublic UnconditionalFlowInfo unconditionalFieldLessCopy()
FlowInfounconditionalInits followed by the
erasure of fields specific information, but leaving this flow info unaffected.unconditionalFieldLessCopy in class FlowInfopublic UnconditionalFlowInfo unconditionalInits()
FlowInfounconditionalInits in class FlowInfopublic UnconditionalFlowInfo unconditionalInitsWithoutSideEffect()
FlowInfounconditionalInits, but leaving
this info unaffected. Side effects on the result might affect this though
(consider it as read only).unconditionalInitsWithoutSideEffect in class FlowInfopublic void resetAssignmentInfo(LocalVariableBinding local)
FlowInforesetAssignmentInfo in class FlowInfo