Modifier and Type | Method | Description |
---|---|---|
NodeList<AnnotationExpr> |
ArrayCreationLevel.getAnnotations() |
|
NodeList<AnnotationExpr> |
PackageDeclaration.getAnnotations() |
Retrieves the list of annotations declared before the package
declaration.
|
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 top level types declared in this compilation unit.
If there are no types declared, none is returned. |
static <X extends Node> |
NodeList.nodeList(NodeList<X> nodes) |
|
static <X extends Node> |
NodeList.nodeList(Collection<X> nodes) |
|
static <X extends Node> |
NodeList.nodeList(X... nodes) |
|
NodeList<N> |
NodeList.setParentNode(Node parentNode) |
Sets the parentNode
|
Modifier and Type | Method | Description |
---|---|---|
List<NodeList<?>> |
ArrayCreationLevel.getNodeLists() |
|
List<NodeList<?>> |
CompilationUnit.getNodeLists() |
|
List<NodeList<?>> |
Node.getNodeLists() |
The list of NodeLists owned by this node.
|
List<NodeList<?>> |
PackageDeclaration.getNodeLists() |
|
static <T extends Node> |
NodeList.toNodeList() |
|
static <T extends Node> |
NodeList.toNodeList() |
Modifier and Type | Method | Description |
---|---|---|
void |
NodeList.addAll(NodeList<N> otherList) |
|
static <X extends Node> |
NodeList.nodeList(NodeList<X> nodes) |
|
ArrayCreationLevel |
ArrayCreationLevel.setAnnotations(NodeList<AnnotationExpr> annotations) |
|
PackageDeclaration |
PackageDeclaration.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.
|
Modifier and Type | Method | Description |
---|---|---|
void |
NodeList.ifNonEmpty(Consumer<? super NodeList<N>> consumer) |
Constructor | Description |
---|---|
ArrayCreationLevel(Expression dimension,
NodeList<AnnotationExpr> annotations) |
|
ArrayCreationLevel(TokenRange tokenRange,
Expression dimension,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
CompilationUnit(PackageDeclaration packageDeclaration,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types,
ModuleDeclaration module) |
|
CompilationUnit(TokenRange tokenRange,
PackageDeclaration packageDeclaration,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types,
ModuleDeclaration module) |
This constructor is used by the parser and is considered private.
|
NodeList(NodeList<N> n) |
|
PackageDeclaration(NodeList<AnnotationExpr> annotations,
Name name) |
|
PackageDeclaration(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations,
Name name) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | Description |
---|---|---|
List<NodeList<?>> |
AnnotationDeclaration.getNodeLists() |
|
List<NodeList<?>> |
AnnotationMemberDeclaration.getNodeLists() |
|
List<NodeList<?>> |
BodyDeclaration.getNodeLists() |
|
List<NodeList<?>> |
CallableDeclaration.getNodeLists() |
|
List<NodeList<?>> |
ClassOrInterfaceDeclaration.getNodeLists() |
|
List<NodeList<?>> |
ConstructorDeclaration.getNodeLists() |
|
List<NodeList<?>> |
EnumConstantDeclaration.getNodeLists() |
|
List<NodeList<?>> |
EnumDeclaration.getNodeLists() |
|
List<NodeList<?>> |
FieldDeclaration.getNodeLists() |
|
List<NodeList<?>> |
InitializerDeclaration.getNodeLists() |
|
List<NodeList<?>> |
MethodDeclaration.getNodeLists() |
|
List<NodeList<?>> |
Parameter.getNodeLists() |
|
List<NodeList<?>> |
TypeDeclaration.getNodeLists() |
Constructor | Description |
---|---|
AnnotationDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
AnnotationDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
|
AnnotationMemberDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
This constructor is used by the parser and is considered private.
|
AnnotationMemberDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
SimpleName name,
Expression defaultValue) |
|
BodyDeclaration(NodeList<AnnotationExpr> annotations) |
|
BodyDeclaration(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
CallableDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions) |
This constructor is used by the parser and is considered private.
|
CallableDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions) |
|
ClassOrInterfaceDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
ClassOrInterfaceDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
boolean isInterface,
SimpleName name,
NodeList<TypeParameter> typeParameters,
NodeList<ClassOrInterfaceType> extendedTypes,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<BodyDeclaration<?>> members) |
|
ConstructorDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
This constructor is used by the parser and is considered private.
|
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
|
EnumConstantDeclaration(NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody) |
|
EnumConstantDeclaration(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> classBody) |
This constructor is used by the parser and is considered private.
|
EnumDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<EnumConstantDeclaration> entries,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
EnumDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<ClassOrInterfaceType> implementedTypes,
NodeList<EnumConstantDeclaration> entries,
NodeList<BodyDeclaration<?>> members) |
|
FieldDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
This constructor is used by the parser and is considered private.
|
FieldDeclaration(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
|
FieldDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
|
MethodDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
This constructor is used by the parser and is considered private.
|
MethodDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
boolean isDefault,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
Deprecated.
this constructor allows you to set "isDefault", but this is no longer a field of this node, but simply one of the modifiers. Use setDefault(boolean) or add DEFAULT to the modifiers set.
|
MethodDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
|
MethodDeclaration(EnumSet<Modifier> modifiers,
String name,
Type type,
NodeList<Parameter> parameters) |
|
Parameter(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
NodeList<AnnotationExpr> varArgsAnnotations,
SimpleName name) |
This constructor is used by the parser and is considered private.
|
Parameter(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
Type type,
boolean isVarArgs,
NodeList<AnnotationExpr> varArgsAnnotations,
SimpleName name) |
|
TypeDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
This constructor is used by the parser and is considered private.
|
TypeDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
SimpleName name,
NodeList<BodyDeclaration<?>> members) |
Modifier and Type | Method | Description |
---|---|---|
NodeList<AnnotationExpr> |
Name.getAnnotations() |
|
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 | Description |
---|---|---|
Optional<NodeList<BodyDeclaration<?>>> |
ObjectCreationExpr.getAnonymousClassBody() |
|
List<NodeList<?>> |
ArrayCreationExpr.getNodeLists() |
|
List<NodeList<?>> |
ArrayInitializerExpr.getNodeLists() |
|
List<NodeList<?>> |
FieldAccessExpr.getNodeLists() |
|
List<NodeList<?>> |
LambdaExpr.getNodeLists() |
|
List<NodeList<?>> |
MethodCallExpr.getNodeLists() |
|
List<NodeList<?>> |
MethodReferenceExpr.getNodeLists() |
|
List<NodeList<?>> |
Name.getNodeLists() |
|
List<NodeList<?>> |
NormalAnnotationExpr.getNodeLists() |
|
List<NodeList<?>> |
ObjectCreationExpr.getNodeLists() |
|
List<NodeList<?>> |
VariableDeclarationExpr.getNodeLists() |
|
Optional<NodeList<Type>> |
FieldAccessExpr.getTypeArguments() |
|
Optional<NodeList<Type>> |
MethodCallExpr.getTypeArguments() |
|
Optional<NodeList<Type>> |
MethodReferenceExpr.getTypeArguments() |
|
Optional<NodeList<Type>> |
ObjectCreationExpr.getTypeArguments() |
Modifier and Type | Method | Description |
---|---|---|
Name |
Name.setAnnotations(NodeList<AnnotationExpr> annotations) |
|
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) |
|
FieldAccessExpr |
FieldAccessExpr.setTypeArguments(NodeList<Type> typeArguments) |
Sets the type arguments
|
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
|
ArrayInitializerExpr |
ArrayInitializerExpr.setValues(NodeList<Expression> values) |
|
VariableDeclarationExpr |
VariableDeclarationExpr.setVariables(NodeList<VariableDeclarator> variables) |
Constructor | Description |
---|---|
ArrayCreationExpr(Type elementType,
NodeList<ArrayCreationLevel> levels,
ArrayInitializerExpr initializer) |
|
ArrayCreationExpr(TokenRange tokenRange,
Type elementType,
NodeList<ArrayCreationLevel> levels,
ArrayInitializerExpr initializer) |
This constructor is used by the parser and is considered private.
|
ArrayInitializerExpr(NodeList<Expression> values) |
|
ArrayInitializerExpr(TokenRange tokenRange,
NodeList<Expression> values) |
This constructor is used by the parser and is considered private.
|
FieldAccessExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name) |
|
FieldAccessExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name) |
This constructor is used by the parser and is considered private.
|
LambdaExpr(NodeList<Parameter> parameters,
Statement body,
boolean isEnclosingParameters) |
|
LambdaExpr(TokenRange tokenRange,
NodeList<Parameter> parameters,
Statement body,
boolean isEnclosingParameters) |
This constructor is used by the parser and is considered private.
|
MethodCallExpr(Expression scope,
SimpleName name,
NodeList<Expression> arguments) |
|
MethodCallExpr(Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
|
MethodCallExpr(Expression scope,
String name,
NodeList<Expression> arguments) |
|
MethodCallExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
SimpleName name,
NodeList<Expression> arguments) |
This constructor is used by the parser and is considered private.
|
MethodReferenceExpr(Expression scope,
NodeList<Type> typeArguments,
String identifier) |
|
MethodReferenceExpr(TokenRange tokenRange,
Expression scope,
NodeList<Type> typeArguments,
String identifier) |
This constructor is used by the parser and is considered private.
|
Name(Name qualifier,
String identifier,
NodeList<AnnotationExpr> annotations) |
|
Name(TokenRange tokenRange,
Name qualifier,
String identifier,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
NormalAnnotationExpr(Name name,
NodeList<MemberValuePair> pairs) |
|
NormalAnnotationExpr(TokenRange tokenRange,
Name name,
NodeList<MemberValuePair> pairs) |
This constructor is used by the parser and is considered private.
|
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Expression> arguments) |
Defines a call to a constructor.
|
ObjectCreationExpr(Expression scope,
ClassOrInterfaceType type,
NodeList<Type> typeArguments,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> anonymousClassBody) |
|
ObjectCreationExpr(TokenRange tokenRange,
Expression scope,
ClassOrInterfaceType type,
NodeList<Type> typeArguments,
NodeList<Expression> arguments,
NodeList<BodyDeclaration<?>> anonymousClassBody) |
This constructor is used by the parser and is considered private.
|
VariableDeclarationExpr(NodeList<VariableDeclarator> variables) |
|
VariableDeclarationExpr(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
This constructor is used by the parser and is considered private.
|
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<VariableDeclarator> variables) |
|
VariableDeclarationExpr(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<VariableDeclarator> variables) |
Modifier and Type | Method | Description |
---|---|---|
NodeList<AnnotationExpr> |
ModuleDeclaration.getAnnotations() |
|
NodeList<Name> |
ModuleExportsStmt.getModuleNames() |
|
NodeList<Name> |
ModuleOpensStmt.getModuleNames() |
|
NodeList<ModuleStmt> |
ModuleDeclaration.getModuleStmts() |
|
NodeList<Type> |
ModuleProvidesStmt.getWithTypes() |
Modifier and Type | Method | Description |
---|---|---|
List<NodeList<?>> |
ModuleDeclaration.getNodeLists() |
|
List<NodeList<?>> |
ModuleExportsStmt.getNodeLists() |
|
List<NodeList<?>> |
ModuleOpensStmt.getNodeLists() |
|
List<NodeList<?>> |
ModuleProvidesStmt.getNodeLists() |
Modifier and Type | Method | Description |
---|---|---|
ModuleDeclaration |
ModuleDeclaration.setAnnotations(NodeList<AnnotationExpr> annotations) |
|
ModuleExportsStmt |
ModuleExportsStmt.setModuleNames(NodeList<Name> moduleNames) |
|
ModuleOpensStmt |
ModuleOpensStmt.setModuleNames(NodeList<Name> moduleNames) |
|
ModuleDeclaration |
ModuleDeclaration.setModuleStmts(NodeList<ModuleStmt> moduleStmts) |
|
ModuleProvidesStmt |
ModuleProvidesStmt.setWithTypes(NodeList<Type> withTypes) |
Constructor | Description |
---|---|
ModuleDeclaration(NodeList<AnnotationExpr> annotations,
Name name,
boolean isOpen,
NodeList<ModuleStmt> moduleStmts) |
|
ModuleDeclaration(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations,
Name name,
boolean isOpen,
NodeList<ModuleStmt> moduleStmts) |
This constructor is used by the parser and is considered private.
|
ModuleExportsStmt(Name name,
NodeList<Name> moduleNames) |
|
ModuleExportsStmt(TokenRange tokenRange,
Name name,
NodeList<Name> moduleNames) |
This constructor is used by the parser and is considered private.
|
ModuleOpensStmt(Name name,
NodeList<Name> moduleNames) |
|
ModuleOpensStmt(TokenRange tokenRange,
Name name,
NodeList<Name> moduleNames) |
This constructor is used by the parser and is considered private.
|
ModuleProvidesStmt(Type type,
NodeList<Type> withTypes) |
|
ModuleProvidesStmt(TokenRange tokenRange,
Type type,
NodeList<Type> withTypes) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | 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 | Description |
---|---|---|
Optional<NodeList<Type>> |
NodeWithTypeArguments.getTypeArguments() |
Modifier and Type | Method | 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 | Description |
---|---|---|
NodeList<? extends Node> |
ObservableProperty.getValueAsMultipleReference(Node node) |
Modifier and Type | Method | Description |
---|---|---|
void |
PropagatingAstObserver.concreteListChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved) |
|
void |
PropagatingAstObserver.concreteListReplacement(NodeList observedNode,
int index,
Node oldValue,
Node newValue) |
|
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) |
|
void |
PropagatingAstObserver.listChange(NodeList observedNode,
AstObserver.ListChangeType type,
int index,
Node nodeAddedOrRemoved) |
|
void |
AstObserver.listReplacement(NodeList observedNode,
int index,
Node oldNode,
Node newNode) |
|
void |
AstObserverAdapter.listReplacement(NodeList observedNode,
int index,
Node oldNode,
Node newNode) |
|
void |
PropagatingAstObserver.listReplacement(NodeList observedNode,
int index,
Node oldNode,
Node newNode) |
Modifier and Type | Method | 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 | Description |
---|---|---|
List<NodeList<?>> |
BlockStmt.getNodeLists() |
|
List<NodeList<?>> |
ExplicitConstructorInvocationStmt.getNodeLists() |
|
List<NodeList<?>> |
ForStmt.getNodeLists() |
|
List<NodeList<?>> |
SwitchEntryStmt.getNodeLists() |
|
List<NodeList<?>> |
SwitchStmt.getNodeLists() |
|
List<NodeList<?>> |
TryStmt.getNodeLists() |
|
Optional<NodeList<Type>> |
ExplicitConstructorInvocationStmt.getTypeArguments() |
Modifier and Type | Method | 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) |
Constructor | Description |
---|---|
BlockStmt(NodeList<Statement> statements) |
|
BlockStmt(TokenRange tokenRange,
NodeList<Statement> statements) |
This constructor is used by the parser and is considered private.
|
CatchClause(EnumSet<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
SimpleName exceptName,
BlockStmt body) |
|
ExplicitConstructorInvocationStmt(boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
|
ExplicitConstructorInvocationStmt(NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
|
ExplicitConstructorInvocationStmt(TokenRange tokenRange,
NodeList<Type> typeArguments,
boolean isThis,
Expression expression,
NodeList<Expression> arguments) |
This constructor is used by the parser and is considered private.
|
ForStmt(NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
|
ForStmt(TokenRange tokenRange,
NodeList<Expression> initialization,
Expression compare,
NodeList<Expression> update,
Statement body) |
This constructor is used by the parser and is considered private.
|
SwitchEntryStmt(Expression label,
NodeList<Statement> statements) |
|
SwitchEntryStmt(TokenRange tokenRange,
Expression label,
NodeList<Statement> statements) |
This constructor is used by the parser and is considered private.
|
SwitchStmt(Expression selector,
NodeList<SwitchEntryStmt> entries) |
|
SwitchStmt(TokenRange tokenRange,
Expression selector,
NodeList<SwitchEntryStmt> entries) |
This constructor is used by the parser and is considered private.
|
TryStmt(NodeList<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
|
TryStmt(BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
|
TryStmt(TokenRange tokenRange,
NodeList<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | Description |
---|---|---|
NodeList<AnnotationExpr> |
ArrayType.ArrayBracketPair.getAnnotations() |
|
NodeList<AnnotationExpr> |
Type.getAnnotations() |
|
NodeList<ReferenceType> |
IntersectionType.getElements() |
|
NodeList<ReferenceType> |
UnionType.getElements() |
|
NodeList<ClassOrInterfaceType> |
TypeParameter.getTypeBound() |
Return the list of
ClassOrInterfaceType that this parameter
extends. |
Modifier and Type | Method | Description |
---|---|---|
List<NodeList<?>> |
ArrayType.getNodeLists() |
|
List<NodeList<?>> |
ClassOrInterfaceType.getNodeLists() |
|
List<NodeList<?>> |
IntersectionType.getNodeLists() |
|
List<NodeList<?>> |
PrimitiveType.getNodeLists() |
|
List<NodeList<?>> |
TypeParameter.getNodeLists() |
|
List<NodeList<?>> |
UnionType.getNodeLists() |
|
List<NodeList<?>> |
UnknownType.getNodeLists() |
|
List<NodeList<?>> |
VoidType.getNodeLists() |
|
List<NodeList<?>> |
WildcardType.getNodeLists() |
|
Optional<NodeList<Type>> |
ClassOrInterfaceType.getTypeArguments() |
Constructor | Description |
---|---|
ArrayBracketPair(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations) |
|
ArrayType(Type componentType,
NodeList<AnnotationExpr> annotations) |
|
ArrayType(TokenRange tokenRange,
Type componentType,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
ClassOrInterfaceType(ClassOrInterfaceType scope,
SimpleName name,
NodeList<Type> typeArguments) |
|
ClassOrInterfaceType(ClassOrInterfaceType scope,
SimpleName name,
NodeList<Type> typeArguments,
NodeList<AnnotationExpr> annotations) |
|
ClassOrInterfaceType(TokenRange tokenRange,
ClassOrInterfaceType scope,
SimpleName name,
NodeList<Type> typeArguments,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
IntersectionType(NodeList<ReferenceType> elements) |
|
IntersectionType(TokenRange tokenRange,
NodeList<ReferenceType> elements) |
This constructor is used by the parser and is considered private.
|
ReferenceType(NodeList<AnnotationExpr> annotations) |
|
ReferenceType(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
Type(NodeList<AnnotationExpr> annotations) |
|
Type(TokenRange tokenRange,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
TypeParameter(SimpleName name,
NodeList<ClassOrInterfaceType> typeBound,
NodeList<AnnotationExpr> annotations) |
|
TypeParameter(Range range,
SimpleName name,
NodeList<ClassOrInterfaceType> typeBound) |
Deprecated.
range shouldn't be in utility constructors.
|
TypeParameter(TokenRange tokenRange,
SimpleName name,
NodeList<ClassOrInterfaceType> typeBound,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
TypeParameter(String name,
NodeList<ClassOrInterfaceType> typeBound) |
|
UnionType(NodeList<ReferenceType> elements) |
|
UnionType(TokenRange tokenRange,
NodeList<ReferenceType> elements) |
This constructor is used by the parser and is considered private.
|
WildcardType(ReferenceType extendedType,
ReferenceType superType,
NodeList<AnnotationExpr> annotations) |
|
WildcardType(TokenRange tokenRange,
ReferenceType extendedType,
ReferenceType superType,
NodeList<AnnotationExpr> annotations) |
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method | Description |
---|---|---|
Visitable |
CloneVisitor.visit(NodeList n,
Object arg) |
|
Boolean |
EqualsVisitor.visit(NodeList n,
Visitable arg) |
|
List<R> |
GenericListVisitorAdapter.visit(NodeList n,
A arg) |
|
R |
GenericVisitor.visit(NodeList n,
A arg) |
|
R |
GenericVisitorAdapter.visit(NodeList n,
A arg) |
|
Integer |
HashCodeVisitor.visit(NodeList n,
Void arg) |
|
Visitable |
ModifierVisitor.visit(NodeList n,
A arg) |
|
Boolean |
ObjectIdentityEqualsVisitor.visit(NodeList n,
Visitable arg) |
|
Integer |
ObjectIdentityHashCodeVisitor.visit(NodeList n,
Void arg) |
|
void |
VoidVisitor.visit(NodeList n,
A arg) |
|
void |
VoidVisitorAdapter.visit(NodeList n,
A arg) |
Modifier and Type | Method | Description |
---|---|---|
void |
InitializeConstructorParametersStatementsGenerator.generate(Class<? extends Node> nodeClass,
NodeList<Statement> initializeConstructorParametersStatements) |
|
void |
InitializePropertyMetaModelsStatementsGenerator.generate(Class<?> nodeClass,
Field field,
ClassOrInterfaceDeclaration nodeMetaModelClass,
String nodeMetaModelFieldName,
NodeList<Statement> initializePropertyMetaModelsStatements) |
|
void |
NodeMetaModelGenerator.generate(Class<? extends Node> nodeClass,
ClassOrInterfaceDeclaration metaModelCoid,
NodeList<Statement> initializeNodeMetaModelsStatements,
NodeList<Statement> initializePropertyMetaModelsStatements,
NodeList<Statement> initializeConstructorParametersStatements,
SourceRoot sourceRoot) |
|
void |
InitializePropertyMetaModelsStatementsGenerator.generateDerivedProperty(Method method,
ClassOrInterfaceDeclaration nodeMetaModelClass,
String nodeMetaModelFieldName,
NodeList<Statement> initializePropertyMetaModelsStatements) |
Modifier and Type | Method | Description |
---|---|---|
void |
PrettyPrintVisitor.visit(NodeList n,
Void arg) |
Modifier and Type | Method | Description |
---|---|---|
static <T extends Node> |
PositionUtils.sortByBeginPosition(NodeList<T> nodes) |
Copyright © 2007–2019. All rights reserved.