public final class ArrayCreationExpr extends Expression implements NodeWithType<ArrayCreationExpr>
ABSOLUTE_BEGIN_LINE, ABSOLUTE_END_LINE, NODE_BY_BEGIN_POSITION
Constructor and Description |
---|
ArrayCreationExpr() |
ArrayCreationExpr(Range range,
Type type) |
ArrayCreationExpr(Range range,
Type type,
List<ArrayCreationLevel> levels,
ArrayInitializerExpr initializer) |
ArrayCreationExpr(Type type) |
ArrayCreationExpr(Type type,
List<ArrayCreationLevel> levels,
ArrayInitializerExpr initializer) |
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.
|
ArrayInitializerExpr |
getInitializer() |
List<ArrayCreationLevel> |
getLevels() |
Type |
getType()
Gets the type
|
ArrayCreationExpr |
setInitializer(ArrayInitializerExpr initializer) |
ArrayCreationExpr |
setLevels(List<ArrayCreationLevel> levels) |
ArrayCreationExpr |
setType(Type type)
Sets the type
|
addOrphanComment, clone, contains, equals, getAllContainedComments, getBegin, getChildrenNodes, getComment, getEnd, getNodesByType, getOrphanComments, getParentNode, getParentNodeOfType, getRange, getUserData, hasComment, hashCode, isPositionedAfter, isPositionedBefore, remove, setAsParentNodeOf, setAsParentNodeOf, setBegin, setBlockComment, setComment, setEnd, setLineComment, setParentNode, setRange, setUserData, toString, toStringWithoutComments, tryAddImportToParentCompilationUnit
finalize, getClass, notify, notifyAll, wait, wait, wait
setType, setType
public ArrayCreationExpr()
public ArrayCreationExpr(Type type, List<ArrayCreationLevel> levels, ArrayInitializerExpr initializer)
public ArrayCreationExpr(Range range, Type type, List<ArrayCreationLevel> levels, ArrayInitializerExpr initializer)
public ArrayCreationExpr(Type type)
public <R,A> R accept(GenericVisitor<R,A> v, A arg)
Node
public <A> void accept(VoidVisitor<A> v, A arg)
Node
public ArrayInitializerExpr getInitializer()
public Type getType()
NodeWithType
getType
in interface NodeWithType<ArrayCreationExpr>
public ArrayCreationExpr setInitializer(ArrayInitializerExpr initializer)
public ArrayCreationExpr setType(Type type)
NodeWithType
setType
in interface NodeWithType<ArrayCreationExpr>
type
- the typepublic List<ArrayCreationLevel> getLevels()
public ArrayCreationExpr setLevels(List<ArrayCreationLevel> levels)
Copyright © 2007–2016. All rights reserved.