Modifier and Type | Method and Description |
---|---|
NodeList<AnnotationExpr> |
PackageDeclaration.getAnnotations()
Retrieves the list of annotations declared before the package
declaration.
|
NodeList<AnnotationExpr> |
ArrayCreationLevel.getAnnotations() |
NodeList<ImportDeclaration> |
CompilationUnit.getImports()
Retrieves the list of imports declared in this compilation unit or
null if there is no import. |
NodeList<TypeDeclaration<?>> |
CompilationUnit.getTypes()
Return the list of types declared in this compilation unit.
If there is no types declared, null is returned. |
static <X extends Node> |
NodeList.nodeList(Collection<X> nodes) |
static <X extends Node> |
NodeList.nodeList(NodeList<X> nodes) |
static <X extends Node> |
NodeList.nodeList(X... nodes) |
NodeList<N> |
NodeList.setParentNode(Node parentNode)
Sets the parentNode
|
Modifier and Type | Method and Description |
---|---|
List<NodeList<?>> |
Node.getNodeLists()
The list of NodeLists owned by this node.
|
List<NodeList<?>> |
CompilationUnit.getNodeLists() |
List<NodeList<?>> |
PackageDeclaration.getNodeLists() |
List<NodeList<?>> |
ArrayCreationLevel.getNodeLists() |
Modifier and Type | Method and Description |
---|---|
void |
NodeList.addAll(NodeList<N> otherList) |
static <X extends Node> |
NodeList.nodeList(NodeList<X> nodes) |
PackageDeclaration |
PackageDeclaration.setAnnotations(NodeList<AnnotationExpr> annotations) |
ArrayCreationLevel |
ArrayCreationLevel.setAnnotations(NodeList<AnnotationExpr> annotations) |
protected void |
Node.setAsParentNodeOf(NodeList<? extends Node> list) |
CompilationUnit |
CompilationUnit.setImports(NodeList<ImportDeclaration> imports)
Sets the list of imports of this compilation unit.
|
CompilationUnit |
CompilationUnit.setTypes(NodeList<TypeDeclaration<?>> types)
Sets the list of types declared in this compilation unit.
|
Constructor and Description |
---|
ArrayCreationLevel(Expression dimension,
NodeList<AnnotationExpr> annotations) |
ArrayCreationLevel(Range range,
Expression dimension,
NodeList<AnnotationExpr> annotations) |
CompilationUnit(PackageDeclaration packageDeclaration,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types) |
CompilationUnit(PackageDeclaration packageDeclaration,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types) |
CompilationUnit(Range range,
PackageDeclaration packageDeclaration,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types) |
CompilationUnit(Range range,
PackageDeclaration packageDeclaration,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types) |
PackageDeclaration(NodeList<AnnotationExpr> annotations,
Name name) |
PackageDeclaration(Range range,
NodeList<AnnotationExpr> annotations,
Name name) |
Modifier and Type | Method and Description |
---|---|
List<NodeList<?>> |
ConstructorDeclaration.getNodeLists() |
List<NodeList<?>> |
Parameter.getNodeLists() |
List<NodeList<?>> |
FieldDeclaration.getNodeLists() |
List<NodeList<?>> |
BodyDeclaration.getNodeLists() |
List<NodeList<?>> |
ClassOrInterfaceDeclaration.getNodeLists() |
List<NodeList<?>> |
EnumConstantDeclaration.getNodeLists() |
List<NodeList<?>> |
MethodDeclaration.getNodeLists() |
List<NodeList<?>> |
EnumDeclaration.getNodeLists() |
List<NodeList<?>> |
TypeDeclaration.getNodeLists() |
Modifier and Type | Method and Description |
---|---|
NodeList<AnnotationExpr> |
VariableDeclarationExpr.getAnnotations() |
NodeList<Expression> |
MethodCallExpr.getArguments() |
NodeList<Expression> |
ObjectCreationExpr.getArguments() |
NodeList<ArrayCreationLevel> |
ArrayCreationExpr.getLevels() |
NodeList<MemberValuePair> |
NormalAnnotationExpr.getPairs() |
NodeList<Parameter> |
LambdaExpr.getParameters() |
NodeList<Expression> |
ArrayInitializerExpr.getValues() |
NodeList<VariableDeclarator> |
VariableDeclarationExpr.getVariables() |
Modifier and Type | Method and Description |
---|---|
Optional<NodeList<BodyDeclaration<?>>> |
ObjectCreationExpr.getAnonymousClassBody() |
Optional<NodeList<Type>> |
MethodCallExpr.getTypeArguments() |
Optional<NodeList<Type>> |
MethodReferenceExpr.getTypeArguments() |
Optional<NodeList<Type>> |
ObjectCreationExpr.getTypeArguments() |
Optional<NodeList<Type>> |
FieldAccessExpr.getTypeArguments() |
Modifier and Type | Method and Description |
---|---|
VariableDeclarationExpr |
VariableDeclarationExpr.setAnnotations(NodeList<AnnotationExpr> annotations) |
ObjectCreationExpr |
ObjectCreationExpr.setAnonymousClassBody(NodeList<BodyDeclaration<?>> anonymousClassBody)
Sets the anonymousClassBody
Null means no class body Empty NodeList means new ClassName(){ } |
MethodCallExpr |
MethodCallExpr.setArguments(NodeList<Expression> arguments) |
ObjectCreationExpr |
ObjectCreationExpr.setArguments(NodeList<Expression> arguments) |
ArrayCreationExpr |
ArrayCreationExpr.setLevels(NodeList<ArrayCreationLevel> levels) |
NormalAnnotationExpr |
NormalAnnotationExpr.setPairs(NodeList<MemberValuePair> pairs) |
LambdaExpr |
LambdaExpr.setParameters(NodeList<Parameter> parameters) |
MethodCallExpr |
MethodCallExpr.setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
MethodReferenceExpr |
MethodReferenceExpr.setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
ObjectCreationExpr |
ObjectCreationExpr.setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
FieldAccessExpr |
FieldAccessExpr.setTypeArguments(NodeList<Type> types)
Sets the type arguments
|
ArrayInitializerExpr |
ArrayInitializerExpr.setValues(NodeList<Expression> values) |
VariableDeclarationExpr |
VariableDeclarationExpr.setVariables(NodeList<VariableDeclarator> variables) |
Modifier and Type | Method and Description |
---|---|
NodeList<AnnotationExpr> |
NodeWithAnnotations.getAnnotations() |
NodeList<Expression> |
NodeWithArguments.getArguments() |
NodeList<ClassOrInterfaceType> |
NodeWithExtends.getExtendedTypes() |
NodeList<ClassOrInterfaceType> |
NodeWithImplements.getImplementedTypes() |
NodeList<BodyDeclaration<?>> |
NodeWithMembers.getMembers() |
NodeList<Parameter> |
NodeWithParameters.getParameters() |
NodeList<Statement> |
NodeWithStatements.getStatements() |
NodeList<ReferenceType> |
NodeWithThrownExceptions.getThrownExceptions() |
NodeList<TypeParameter> |
NodeWithTypeParameters.getTypeParameters() |
NodeList<VariableDeclarator> |
NodeWithVariables.getVariables() |
Modifier and Type | Method and Description |
---|---|
Optional<NodeList<Type>> |
NodeWithTypeArguments.getTypeArguments() |
Modifier and Type | Method and Description |
---|---|
default N |
NodeWithStatements.copyStatements(NodeList<Statement> nodeList) |
N |
NodeWithAnnotations.setAnnotations(NodeList<AnnotationExpr> annotations) |
N |
NodeWithArguments.setArguments(NodeList<Expression> arguments) |
N |
NodeWithExtends.setExtendedTypes(NodeList<ClassOrInterfaceType> extendsList) |
N |
NodeWithImplements.setImplementedTypes(NodeList<ClassOrInterfaceType> implementsList) |
N |
NodeWithMembers.setMembers(NodeList<BodyDeclaration<?>> members) |
N |
NodeWithParameters.setParameters(NodeList<Parameter> parameters) |
N |
NodeWithStatements.setStatements(NodeList<Statement> statements) |
N |
NodeWithThrownExceptions.setThrownExceptions(NodeList<ReferenceType> thrownExceptions) |
N |
NodeWithTypeArguments.setTypeArguments(NodeList<Type> typeArguments)
Allows you to set the generic arguments
|
N |
NodeWithTypeParameters.setTypeParameters(NodeList<TypeParameter> typeParameters) |
N |
NodeWithVariables.setVariables(NodeList<VariableDeclarator> variables) |
Modifier and Type | Method and Description |
---|---|
void |
PropagatingAstObserver.concreteListChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved) |
void |
PropagatingAstObserver.listChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved) |
void |
AstObserver.listChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved)
A list is changed
|
void |
AstObserverAdapter.listChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved) |
Modifier and Type | Method and Description |
---|---|
NodeList<Expression> |
ExplicitConstructorInvocationStmt.getArguments() |
NodeList<CatchClause> |
TryStmt.getCatchClauses() |
NodeList<SwitchEntryStmt> |
SwitchStmt.getEntries() |
NodeList<Expression> |
ForStmt.getInitialization() |
NodeList<VariableDeclarationExpr> |
TryStmt.getResources() |
NodeList<Statement> |
BlockStmt.getStatements() |
NodeList<Statement> |
SwitchEntryStmt.getStatements() |
NodeList<Expression> |
ForStmt.getUpdate() |
Modifier and Type | Method and Description |
---|---|
List<NodeList<?>> |
BlockStmt.getNodeLists() |
Optional<NodeList<Type>> |
ExplicitConstructorInvocationStmt.getTypeArguments() |
Modifier and Type | Method and Description |
---|---|
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setArguments(NodeList<Expression> arguments) |
TryStmt |
TryStmt.setCatchClauses(NodeList<CatchClause> catchClauses) |
SwitchStmt |
SwitchStmt.setEntries(NodeList<SwitchEntryStmt> entries) |
ForStmt |
ForStmt.setInitialization(NodeList<Expression> initialization) |
TryStmt |
TryStmt.setResources(NodeList<VariableDeclarationExpr> resources) |
BlockStmt |
BlockStmt.setStatements(NodeList<Statement> statements) |
SwitchEntryStmt |
SwitchEntryStmt.setStatements(NodeList<Statement> statements) |
ExplicitConstructorInvocationStmt |
ExplicitConstructorInvocationStmt.setTypeArguments(NodeList<Type> typeArguments)
Sets the typeArguments
|
ForStmt |
ForStmt.setUpdate(NodeList<Expression> update) |
Modifier and Type | Method and Description |
---|---|
NodeList<AnnotationExpr> |
ArrayType.ArrayBracketPair.getAnnotations() |
NodeList<AnnotationExpr> |
TypeParameter.getAnnotations() |
NodeList<AnnotationExpr> |
Type.getAnnotations() |
NodeList<ReferenceType> |
UnionType.getElements() |
NodeList<ReferenceType> |
IntersectionType.getElements() |
NodeList<ClassOrInterfaceType> |
TypeParameter.getTypeBound()
Return the list of
ClassOrInterfaceType that this parameter
extends. |
Modifier and Type | Method and Description |
---|---|
Optional<NodeList<Type>> |
ClassOrInterfaceType.getTypeArguments() |
Modifier and Type | Method and Description |
---|---|
R |
GenericVisitor.visit(NodeList n,
A arg) |
Visitable |
ModifierVisitor.visit(NodeList n,
A arg) |
void |
VoidVisitor.visit(NodeList n,
A arg) |
void |
VoidVisitorAdapter.visit(NodeList n,
A arg) |
R |
GenericVisitorAdapter.visit(NodeList n,
A arg) |
Visitable |
CloneVisitor.visit(NodeList n,
Object arg) |
Boolean |
EqualsVisitor.visit(NodeList n,
Visitable arg) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(NodeList n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
static <T extends Node> |
PositionUtils.sortByBeginPosition(NodeList<T> nodes) |
static <T extends Node> |
PositionUtils.sortByBeginPosition(NodeList<T> nodes,
boolean ignoringAnnotations) |
Copyright © 2007–2017. All rights reserved.