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, getTypeprotected 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.Receiverpublic boolean isUnassignableByOtherCode()
FlowExpressions.ReceiverFlowExpressions.Receiver.isUnassignableByOtherCode() is
true.isUnassignableByOtherCode in class FlowExpressions.ReceiverFlowExpressions.Receiver.isUnmodifiableByOtherCode()public boolean isUnmodifiableByOtherCode()
FlowExpressions.ReceiverApproximately, this returns true if the expression is FlowExpressions.Receiver.isUnassignableByOtherCode() and its type is immutable.
isUnmodifiableByOtherCode in class FlowExpressions.ReceiverFlowExpressions.Receiver.isUnassignableByOtherCode()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean syntacticEquals(FlowExpressions.Receiver other)
syntacticEquals in class FlowExpressions.Receiverpublic boolean containsSyntacticEqualReceiver(FlowExpressions.Receiver other)
containsSyntacticEqualReceiver in class FlowExpressions.Receiverother.public java.lang.String toString()
toString in class java.lang.Object