public static class FlowExpressions.ArrayCreation extends FlowExpressions.Receiver
new String[]()
.Modifier and Type | Field and Description |
---|---|
protected java.util.List<FlowExpressions.Receiver> |
dimensions
List of dimensions expressions.
|
protected java.util.List<FlowExpressions.Receiver> |
initializers
List of initializers.
|
type
Constructor and Description |
---|
ArrayCreation(javax.lang.model.type.TypeMirror type,
java.util.List<FlowExpressions.Receiver> dimensions,
java.util.List<FlowExpressions.Receiver> initializers)
Creates an ArrayCreation object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsOfClass(java.lang.Class<? extends FlowExpressions.Receiver> clazz) |
boolean |
containsSyntacticEqualReceiver(FlowExpressions.Receiver other) |
boolean |
equals(java.lang.Object obj) |
java.util.List<FlowExpressions.Receiver> |
getDimensions() |
java.util.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) |
java.lang.String |
toString() |
containsModifiableAliasOf, containsUnknown, debugToString, getType
protected final java.util.List<FlowExpressions.Receiver> dimensions
protected final java.util.List<FlowExpressions.Receiver> initializers
public ArrayCreation(javax.lang.model.type.TypeMirror type, java.util.List<FlowExpressions.Receiver> dimensions, java.util.List<FlowExpressions.Receiver> initializers)
type
- array typedimensions
- list of dimension expressions; {code null} means that there is no
dimension expressioninitializers
- list of initializer expressionspublic java.util.List<FlowExpressions.Receiver> getDimensions()
public java.util.List<FlowExpressions.Receiver> getInitializers()
public boolean containsOfClass(java.lang.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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean syntacticEquals(FlowExpressions.Receiver other)
syntacticEquals
in class FlowExpressions.Receiver
public boolean containsSyntacticEqualReceiver(FlowExpressions.Receiver other)
containsSyntacticEqualReceiver
in class FlowExpressions.Receiver
other
.public java.lang.String toString()
toString
in class java.lang.Object