public static class FlowExpressions.ArrayCreation extends FlowExpressions.Receiver
Modifier and Type | Field and Description |
---|---|
protected List<FlowExpressions.Receiver> |
dimensions |
protected List<FlowExpressions.Receiver> |
initializers |
type
Constructor and Description |
---|
ArrayCreation(TypeMirror type,
List<FlowExpressions.Receiver> dimensions,
List<FlowExpressions.Receiver> initializers) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsOfClass(Class<? extends FlowExpressions.Receiver> clazz) |
boolean |
containsSyntacticEqualReceiver(FlowExpressions.Receiver other) |
boolean |
equals(Object obj) |
List<FlowExpressions.Receiver> |
getDimensions() |
List<FlowExpressions.Receiver> |
getInitializers() |
int |
hashCode() |
boolean |
isUnassignableByOtherCode()
Returns true if and only if the value this expression stands for cannot be changed (with
respect to ==) by a method call.
|
boolean |
isUnmodifiableByOtherCode()
Returns true if and only if the value this expression stands for cannot be changed by a
method call, including changes to any of its fields.
|
boolean |
syntacticEquals(FlowExpressions.Receiver other) |
String |
toString() |
containsModifiableAliasOf, containsUnknown, getType
protected final List<FlowExpressions.Receiver> dimensions
protected final List<FlowExpressions.Receiver> initializers
public ArrayCreation(TypeMirror type, List<FlowExpressions.Receiver> dimensions, List<FlowExpressions.Receiver> initializers)
public List<FlowExpressions.Receiver> getDimensions()
public List<FlowExpressions.Receiver> getInitializers()
public boolean containsOfClass(Class<? extends FlowExpressions.Receiver> clazz)
containsOfClass
in class FlowExpressions.Receiver
public boolean isUnassignableByOtherCode()
FlowExpressions.Receiver
FlowExpressions.Receiver.isUnassignableByOtherCode()
is
true.isUnassignableByOtherCode
in class FlowExpressions.Receiver
FlowExpressions.Receiver.isUnmodifiableByOtherCode()
public boolean isUnmodifiableByOtherCode()
FlowExpressions.Receiver
Approximately, this returns true if the expression is FlowExpressions.Receiver.isUnassignableByOtherCode()
and its type is immutable.
isUnmodifiableByOtherCode
in class FlowExpressions.Receiver
FlowExpressions.Receiver.isUnassignableByOtherCode()
public boolean syntacticEquals(FlowExpressions.Receiver other)
syntacticEquals
in class FlowExpressions.Receiver
public boolean containsSyntacticEqualReceiver(FlowExpressions.Receiver other)
containsSyntacticEqualReceiver
in class FlowExpressions.Receiver
other
.