Package | Description |
---|---|
com.sonar.sslr.api | |
org.sonar.sslr.ast | |
org.sonar.sslr.internal.ast.select |
Modifier and Type | Method and Description |
---|---|
AstSelect |
AstNode.select() |
Modifier and Type | Method and Description |
---|---|
AstSelect |
AstSelect.children()
Returns new selection, which contains children of this selection.
|
AstSelect |
AstSelect.children(AstNodeType... types)
Returns new selection, which contains children of a given types of this selection.
|
AstSelect |
AstSelect.children(AstNodeType type)
Returns new selection, which contains children of a given type of this selection.
|
AstSelect |
AstSelect.descendants(AstNodeType... types)
Returns new selection, which contains descendants of a given types of this selection.
|
AstSelect |
AstSelect.descendants(AstNodeType type)
Returns new selection, which contains descendants of a given type of this selection.
|
AstSelect |
AstSelect.filter(AstNodeType... types)
Returns new selection, which contains elements of this selection that have any one of the given types.
|
AstSelect |
AstSelect.filter(AstNodeType type)
Returns new selection, which contains elements of this selection that have given type.
|
AstSelect |
AstSelect.filter(com.google.common.base.Predicate<AstNode> predicate)
Returns new selection, which contains elements of this selection that satisfy a predicate.
|
AstSelect |
AstSelect.firstAncestor(AstNodeType... types)
Returns new selection, which contains first ancestor of one of the given types for each node from this selection.
|
AstSelect |
AstSelect.firstAncestor(AstNodeType type)
Returns new selection, which contains first ancestor of a given type for each node from this selection.
|
AstSelect |
AstSelect.nextSibling()
Returns new selection, which contains next sibling for each node from this selection.
|
AstSelect |
AstSelect.parent()
Returns new selection, which contains parent for each node from this selection.
|
AstSelect |
AstSelect.previousSibling()
Returns new selection, which contains previous sibling for each node from this selection.
|
Modifier and Type | Class and Description |
---|---|
class |
EmptyAstSelect
AstSelect which contains no elements. |
class |
ListAstSelect
AstSelect which contains more than one element. |
class |
SingleAstSelect
AstSelect which contains exactly one element. |
Modifier and Type | Method and Description |
---|---|
AstSelect |
SingleAstSelect.children() |
AstSelect |
ListAstSelect.children() |
AstSelect |
EmptyAstSelect.children() |
AstSelect |
SingleAstSelect.children(AstNodeType... types) |
AstSelect |
ListAstSelect.children(AstNodeType... types) |
AstSelect |
EmptyAstSelect.children(AstNodeType... types) |
AstSelect |
SingleAstSelect.children(AstNodeType type) |
AstSelect |
ListAstSelect.children(AstNodeType type) |
AstSelect |
EmptyAstSelect.children(AstNodeType type) |
static AstSelect |
AstSelectFactory.create(List<AstNode> list) |
AstSelect |
SingleAstSelect.descendants(AstNodeType... types) |
AstSelect |
ListAstSelect.descendants(AstNodeType... types) |
AstSelect |
EmptyAstSelect.descendants(AstNodeType... types) |
AstSelect |
SingleAstSelect.descendants(AstNodeType type) |
AstSelect |
ListAstSelect.descendants(AstNodeType type) |
AstSelect |
EmptyAstSelect.descendants(AstNodeType type) |
static AstSelect |
AstSelectFactory.empty() |
AstSelect |
SingleAstSelect.filter(AstNodeType... types) |
AstSelect |
ListAstSelect.filter(AstNodeType... types) |
AstSelect |
EmptyAstSelect.filter(AstNodeType... types) |
AstSelect |
SingleAstSelect.filter(AstNodeType type) |
AstSelect |
ListAstSelect.filter(AstNodeType type) |
AstSelect |
EmptyAstSelect.filter(AstNodeType type) |
AstSelect |
SingleAstSelect.filter(com.google.common.base.Predicate<AstNode> predicate) |
AstSelect |
ListAstSelect.filter(com.google.common.base.Predicate<AstNode> predicate) |
AstSelect |
EmptyAstSelect.filter(com.google.common.base.Predicate<AstNode> predicate) |
AstSelect |
SingleAstSelect.firstAncestor(AstNodeType... types) |
AstSelect |
ListAstSelect.firstAncestor(AstNodeType... types) |
AstSelect |
EmptyAstSelect.firstAncestor(AstNodeType... types) |
AstSelect |
SingleAstSelect.firstAncestor(AstNodeType type) |
AstSelect |
ListAstSelect.firstAncestor(AstNodeType type) |
AstSelect |
EmptyAstSelect.firstAncestor(AstNodeType type) |
AstSelect |
SingleAstSelect.nextSibling() |
AstSelect |
ListAstSelect.nextSibling() |
AstSelect |
EmptyAstSelect.nextSibling() |
AstSelect |
SingleAstSelect.parent() |
AstSelect |
ListAstSelect.parent() |
AstSelect |
EmptyAstSelect.parent() |
AstSelect |
SingleAstSelect.previousSibling() |
AstSelect |
ListAstSelect.previousSibling() |
AstSelect |
EmptyAstSelect.previousSibling() |
static AstSelect |
AstSelectFactory.select(AstNode node) |
Copyright © 2009–2017 SonarSource. All rights reserved.