public final class ArrayCreationExpr extends Expression implements NodeWithType<ArrayCreationExpr>, NodeWithArrays<ArrayCreationExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE
Constructor and Description |
---|
ArrayCreationExpr() |
ArrayCreationExpr(Range range,
Type type,
int arrayCount,
ArrayInitializerExpr initializer) |
ArrayCreationExpr(Range range,
Type type,
List<Expression> dimensions,
int arrayCount) |
ArrayCreationExpr(Type type,
int arrayCount,
ArrayInitializerExpr initializer) |
ArrayCreationExpr(Type type,
List<Expression> dimensions,
int arrayCount) |
Modifier and Type | Method and Description |
---|---|
<R,A> R |
accept(GenericVisitor<R,A> v,
A arg)
Accept method for visitor support.
|
<A> void |
accept(VoidVisitor<A> v,
A arg)
Accept method for visitor support.
|
int |
getArrayCount() |
List<List<AnnotationExpr>> |
getArraysAnnotations() |
List<Expression> |
getDimensions() |
ArrayInitializerExpr |
getInitializer() |
Type |
getType()
Gets the type
|
ArrayCreationExpr |
setArrayCount(int arrayCount) |
ArrayCreationExpr |
setArraysAnnotations(List<List<AnnotationExpr>> arraysAnnotations) |
void |
setDimensions(List<Expression> dimensions) |
void |
setInitializer(ArrayInitializerExpr initializer) |
ArrayCreationExpr |
setType(Type type)
Sets the type
|
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getData, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, hasComment, hashCode, isPositionedAfter, isPositionedBefore, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setData, setEnd, setLineComment, setParentNode, setRange, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
setType
public ArrayCreationExpr()
public ArrayCreationExpr(Type type, int arrayCount, ArrayInitializerExpr initializer)
public ArrayCreationExpr(Range range, Type type, int arrayCount, ArrayInitializerExpr initializer)
public ArrayCreationExpr(Type type, List<Expression> dimensions, int arrayCount)
public ArrayCreationExpr(Range range, Type type, List<Expression> dimensions, int arrayCount)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public int getArrayCount()
getArrayCount
in interface NodeWithArrays<ArrayCreationExpr>
public List<Expression> getDimensions()
public ArrayInitializerExpr getInitializer()
public Type getType()
NodeWithType
getType
in interface NodeWithType<ArrayCreationExpr>
public ArrayCreationExpr setArrayCount(int arrayCount)
setArrayCount
in interface NodeWithArrays<ArrayCreationExpr>
public void setDimensions(List<Expression> dimensions)
public void setInitializer(ArrayInitializerExpr initializer)
public ArrayCreationExpr setType(Type type)
NodeWithType
setType
in interface NodeWithType<ArrayCreationExpr>
type
- the typepublic List<List<AnnotationExpr>> getArraysAnnotations()
getArraysAnnotations
in interface NodeWithArrays<ArrayCreationExpr>
public ArrayCreationExpr setArraysAnnotations(List<List<AnnotationExpr>> arraysAnnotations)
setArraysAnnotations
in interface NodeWithArrays<ArrayCreationExpr>
Copyright © 2007–2016. All rights reserved.