Uses of Class
com.github.javaparser.ast.Node
Packages that use Node
Package
Description
-
Uses of Node in com.github.javaparser
Methods in com.github.javaparser with type parameters of type NodeModifier and TypeMethodDescription<N extends Node>
ParseResult<N>JavaParser.parse(ParseStart<N> start, Provider provider)
Parses source code.Methods in com.github.javaparser that return NodeModifier and TypeMethodDescriptionHasParentNode.getParentNodeForChildren()
Returns the parent node from the perspective of the children of this node.Methods in com.github.javaparser that return types with arguments of type NodeModifier and TypeMethodDescriptionHasParentNode.getParentNode()
Returns the parent node, orOptional.empty
if no parent is set.Methods in com.github.javaparser with parameters of type NodeModifier and TypeMethodDescriptiondefault boolean
HasParentNode.isDescendantOf(Node ancestor)
Determines whether thisHasParentNode
node is a descendant of the given node.HasParentNode.setParentNode(Node parentNode)
Sets the parent node.Method parameters in com.github.javaparser with type arguments of type NodeModifier and TypeMethodDescriptionvoid
ParseResult.PostProcessor.process(ParseResult<? extends Node> result, ParserConfiguration configuration)
-
Uses of Node in com.github.javaparser.ast
Classes in com.github.javaparser.ast with type parameters of type NodeSubclasses of Node in com.github.javaparser.astModifier and TypeClassDescriptionclass
Innew int[1][2];
there are two ArrayCreationLevel objects, the first one contains the expression "1", the second the expression "2".class
This class represents the entire compilation unit.class
An import declaration.class
A modifier, like private, public, or volatile.class
A package declaration.Methods in com.github.javaparser.ast with type parameters of type NodeModifier and TypeMethodDescriptionWalks the AST with pre-order traversal, returning all nodes of type "nodeType".Node.findAll(Class<T> nodeType, Node.TreeTraversal traversal)
Walks the AST with specified traversal order, returning all nodes of type "nodeType".Walks the AST with pre-order traversal, returning all nodes of type "nodeType" that match the predicate.Walks the AST with pre-order traversal, returning the first node of type "nodeType" or empty() if none is found.Walks the AST with pre-order traversal, returning the first node of type "nodeType" that matches "predicate" or empty() if none is found.Node.getChildNodesByType(Class<N> clazz)
Deprecated.Node.getNodesByType(Class<N> clazz)
Deprecated.usefindAll(Class)
but be aware that findAll also considers the initial node.NodeList.nodeList(Collection<X> nodes)
NodeList.nodeList(X... nodes)
NodeList.toNodeList()
<T extends Node>
voidWalks the AST with pre-order traversal, calling the consumer for every node of type "nodeType".Methods in com.github.javaparser.ast that return NodeModifier and TypeMethodDescriptionNode.clone()
Node.findRootNode()
Finds the root node of this AST by finding the topmost parent.Node.getParentNodeForChildren()
NodeList.getParentNodeForChildren()
Node.BreadthFirstIterator.next()
Node.DirectChildrenIterator.next()
Node.ParentsVisitor.next()
Node.PostOrderIterator.next()
Node.PreOrderIterator.next()
Node.removeComment()
Node.setBlockComment(String comment)
Use this to store additional information to this node.Node.setComment(Comment comment)
Use this to store additional information to this node.Node.setLineComment(String comment)
Use this to store additional information to this node.Node.setParentNode(Node newParentNode)
Assign a new parent to this node, removing it from the list of children of the previous parent, if any.Node.setParsed(Node.Parsedness parsed)
Used by the parser to flag unparsable nodes.Node.setTokenRange(TokenRange tokenRange)
Methods in com.github.javaparser.ast that return types with arguments of type NodeModifier and TypeMethodDescriptionNode.getChildNodes()
Contains all nodes that have this node set as their parent.Node.getParentNode()
NodeList.getParentNode()
Node.stream()
Make a stream of nodes using pre-order traversal.Node.stream(Node.TreeTraversal traversal)
Make a stream of nodes using traversal algorithm "traversal".Methods in com.github.javaparser.ast with parameters of type NodeModifier and TypeMethodDescriptionboolean
Node.isAncestorOf(Node descendant)
Determines whether this node is an ancestor of the given node.NodeList.nodeList(X... nodes)
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Try to replace this node in the parent with the supplied node.boolean
boolean
protected void
Node.setAsParentNodeOf(Node childNode)
Node.setParentNode(Node newParentNode)
Assign a new parent to this node, removing it from the list of children of the previous parent, if any.NodeList.setParentNode(Node parentNode)
Sets the parentNodeMethod parameters in com.github.javaparser.ast with type arguments of type NodeModifier and TypeMethodDescription<T> Optional<T>
Node.findFirst(Node.TreeTraversal traversal, Function<Node,Optional<T>> consumer)
Walks the AST, applying the function for every node, with traversal algorithm "traversal".protected void
Node.setAsParentNodeOf(NodeList<? extends Node> list)
void
Node.walk(Node.TreeTraversal traversal, Consumer<Node> consumer)
Walks the AST, calling the consumer for every node, with traversal algorithm "traversal".void
Walks the AST, calling the consumer for every node with pre-order traversal.Constructors in com.github.javaparser.ast with parameters of type NodeModifierConstructorDescriptionBreadthFirstIterator(Node node)
DirectChildrenIterator(Node node)
ParentsVisitor(Node node)
PostOrderIterator(Node root)
PreOrderIterator(Node node)
-
Uses of Node in com.github.javaparser.ast.body
Subclasses of Node in com.github.javaparser.ast.bodyModifier and TypeClassDescriptionclass
An annotation type declaration.@interface X { ... }
class
The "int id();" in@interface X { int id(); }
class
BodyDeclaration<T extends BodyDeclaration<?>>
Any declaration that can appear between the { and } of a class, interface, enum, or record.class
CallableDeclaration<T extends CallableDeclaration<?>>
Represents a declaration which is callable eg.class
A definition of a class or interface.class X { ... }
interface X { ... }
class
The record declaration's constructorclass
A constructor declaration:class X { X() { } }
where X(){} is the constructor declaration.class
One of the values an enum can take.class
The declaration of an enum.enum X { ... }
class
The declaration of a field in a class.class
A (possibly static) initializer body.class
A method declaration.class
The parameters to a method or lambda.class
The receiver parameter feature of Java.class
The record declarationclass
TypeDeclaration<T extends TypeDeclaration<?>>
A base class for all types of type declarations.class
The declaration of a variable.
Inint x = 14, y = 3;
"int x = 14" and "int y = 3" are VariableDeclarators.Methods in com.github.javaparser.ast.body with parameters of type NodeModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Node in com.github.javaparser.ast.comments
Subclasses of Node in com.github.javaparser.ast.commentsModifier and TypeClassDescriptionclass
AST node that represent block comments.class
Abstract class for all AST nodes that represent comments.class
A Javadoc comment.class
AST node that represent line comments.Methods in com.github.javaparser.ast.comments that return NodeMethods in com.github.javaparser.ast.comments that return types with arguments of type NodeMethods in com.github.javaparser.ast.comments with parameters of type NodeModifier and TypeMethodDescriptionComment.setCommentedNode(Node commentedNode)
Sets the commentedNode -
Uses of Node in com.github.javaparser.ast.expr
Subclasses of Node in com.github.javaparser.ast.exprModifier and TypeClassDescriptionclass
A base class for the different types of annotations.class
Array brackets [] being used to get a value from an array.class
new int[5][4][][]
ornew int[][]{{1},{2,3}}
.class
The initialization of an array.class
An assignment expression.class
An expression with an expression on the left, an expression on the right, and an operator in the middle.class
The boolean literals.class
A typecast.class
A literal character.class
Defines an expression that accesses the class of a type.class
The ternary conditional expression.class
A float or a double constant.class
An expression between ( ).class
A base class for all expressions.class
Access of a field of an object or a class.class
The instanceof statementclass
All ways to specify an int literal.class
A lambda expressionclass
A base class for all literal expressions.class
Any literal value that is stored internally as a String.class
All ways to specify a long literal.class
An annotation that uses only the annotation type name.class
A value for a member of an annotation.class
A method call on an object or a class.class
Method reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.class
A name that may consist of multiple identifiers.class
Whenever a SimpleName is used in an expression, it is wrapped in NameExpr.class
An annotation that has zero or more key-value pairs.@Mapping(a=5, d=10)
class
A literal "null".class
A constructor call.class
The instanceof statementclass
A name that consists of a single identifier.class
An annotation that has a single value.class
A literal string.class
An occurrence of the "super" keyword.class
The switch expressionclass
A text blockclass
An occurrence of the "this" keyword.class
This class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.class
An expression where an operator is applied to a single expression.class
A declaration of variables.Methods in com.github.javaparser.ast.expr with parameters of type NodeModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Node in com.github.javaparser.ast.modules
Subclasses of Node in com.github.javaparser.ast.modulesModifier and TypeClassDescriptionclass
A Java 9 Jigsaw module declaration.class
A module directive.class
An exports directive in module-info.java.class
An opens directive in module-info.java.class
A provides directive in module-info.java.class
A require directive in module-info.java.class
A uses directive in module-info.java.Methods in com.github.javaparser.ast.modules with parameters of type NodeModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Node in com.github.javaparser.ast.nodeTypes
Classes in com.github.javaparser.ast.nodeTypes with type parameters of type NodeModifier and TypeInterfaceDescriptioninterface
NodeWithAnnotations<N extends Node>
A node that can be annotated.interface
NodeWithArguments<N extends Node>
A node with arguments.interface
NodeWithBlockStmt<N extends Node>
A node with a body that is a BlockStmt.interface
NodeWithBody<N extends Node>
interface
NodeWithCondition<N extends Node>
interface
NodeWithExpression<N extends Node>
A node that has an expression in it.interface
NodeWithExtends<N extends Node>
A node that explicitly extends other types, using theextends
keyword.interface
NodeWithIdentifier<N extends Node>
interface
NodeWithImplements<N extends Node>
A node that implements other types.interface
NodeWithJavadoc<N extends Node>
A node that can be documented with a Javadoc comment.interface
NodeWithMembers<N extends Node>
A node having members.interface
NodeWithModifiers<N extends Node>
A Node with Modifiers.interface
NodeWithName<N extends Node>
A node with a (qualified) name.interface
NodeWithOptionalBlockStmt<N extends Node>
A node with a body that is a BlockStmt, which is optional.interface
NodeWithOptionalLabel<T extends Node>
A node that has an optional label.interface
NodeWithOptionalScope<N extends Node>
Represents a node which has an optional scope expression eg.interface
NodeWithParameters<N extends Node>
interface
NodeWithScope<N extends Node>
Represents a node which has a required scope expression eg.interface
NodeWithSimpleName<N extends Node>
A node with a name.interface
NodeWithStatements<N extends Node>
A node that contains a list of statements.interface
NodeWithThrownExceptions<N extends Node>
A node that declares the types of exception it throws.interface
NodeWithType<N extends Node,T extends Type>
A node with a type.interface
NodeWithTypeArguments<N extends Node>
A node that can have type arguments.interface
NodeWithTypeParameters<N extends Node>
A node that can have type parameters.interface
NodeWithVariables<N extends Node>
A node which has a list of variables.Methods in com.github.javaparser.ast.nodeTypes that return NodeMethods in com.github.javaparser.ast.nodeTypes with parameters of type NodeModifier and TypeMethodDescriptiondefault boolean
NodeWithRange.containsWithin(Node other)
Deprecated.useNodeWithRange.containsWithinRange(Node)
instead.default boolean
NodeWithRange.containsWithinRange(Node other)
Checks whether the range of the givenNode
is contained within the range of thisNodeWithRange
.boolean
boolean
-
Uses of Node in com.github.javaparser.ast.nodeTypes.modifiers
Classes in com.github.javaparser.ast.nodeTypes.modifiers with type parameters of type NodeModifier and TypeInterfaceDescriptioninterface
NodeWithAbstractModifier<N extends Node>
A node that can be abstract.interface
NodeWithAccessModifiers<N extends Node>
A node that can be public, protected, and/or private.interface
NodeWithFinalModifier<N extends Node>
A node that can be final.interface
NodeWithPrivateModifier<N extends Node>
A node that can be private.interface
NodeWithProtectedModifier<N extends Node>
A node that can be protected.interface
NodeWithPublicModifier<N extends Node>
A node that can be public.interface
NodeWithStaticModifier<N extends Node>
A node that can be static.interface
NodeWithStrictfpModifier<N extends Node>
A node that can be strictfp. -
Uses of Node in com.github.javaparser.ast.observer
Methods in com.github.javaparser.ast.observer that return NodeMethods in com.github.javaparser.ast.observer that return types with arguments of type NodeMethods in com.github.javaparser.ast.observer with parameters of type NodeModifier and TypeMethodDescriptionvoid
PropagatingAstObserver.concreteListChange(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)
void
PropagatingAstObserver.concreteListReplacement(NodeList<?> observedNode, int index, Node oldValue, Node newValue)
void
PropagatingAstObserver.concretePropertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
ObservableProperty.getRawValue(Node node)
ObservableProperty.getValueAsBooleanAttribute(Node node)
Collection<?>
ObservableProperty.getValueAsCollection(Node node)
ObservableProperty.getValueAsMultipleReference(Node node)
ObservableProperty.getValueAsSingleReference(Node node)
ObservableProperty.getValueAsStringAttribute(Node node)
boolean
boolean
ObservableProperty.isNullOrEmpty(Node node)
boolean
ObservableProperty.isNullOrNotPresent(Node node)
void
AstObserver.listChange(NodeList<?> observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)
A list is changedvoid
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)
void
AstObserver.parentChange(Node observedNode, Node previousParent, Node newParent)
The parent of a node is changedvoid
AstObserverAdapter.parentChange(Node observedNode, Node previousParent, Node newParent)
void
PropagatingAstObserver.parentChange(Node observedNode, Node previousParent, Node newParent)
void
AstObserver.propertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
The value of a property is changedvoid
AstObserverAdapter.propertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
void
PropagatingAstObserver.propertyChange(Node observedNode, ObservableProperty property, Object oldValue, Object newValue)
-
Uses of Node in com.github.javaparser.ast.stmt
Subclasses of Node in com.github.javaparser.ast.stmtModifier and TypeClassDescriptionclass
A usage of the keyword "assert"
Inassert dead : "Wasn't expecting to be dead here";
the check is "dead" and the message is the string.class
Statements in between { and }.class
The break statementclass
The catch part of a try-catch-finally.class
A continue statement with an optional label;continue brains;
continue;
class
A do-while.class
An empty statement is a ";" where a statement is expected.class
A call to super or this in a constructor or initializer.class
Used to wrap an expression so that it can take the place of a statement.class
A for-each statement.class
The classic for statementclass
An if-then-else statement.class
A statement that is labeled, likelabel123: println("continuing");
class
A class declaration inside a method.class
A record declaration inside a method.class
The return statement, with an optional expression to return.class
A base class for all statements.class
One case in a switch statementclass
The switch statementclass
Usage of the synchronized keyword.class
Usage of the throw statement.class
The try statementclass
A statement that had parse errors.class
A while statement.class
The yield statementMethods in com.github.javaparser.ast.stmt with parameters of type NodeModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Node in com.github.javaparser.ast.type
Subclasses of Node in com.github.javaparser.ast.typeModifier and TypeClassDescriptionclass
To indicate that a type is an array, it gets wrapped in an ArrayType for every array level it has.class
A class or an interface type.class
Represents a set of types.class
A primitive type.class
Base class for reference types.class
Base class for types.class
A type parameter.class
The union typeclass
An unknown parameter type object.class
A type called "var" waiting for Java to infer it.class
The return type of aMethodDeclaration
when it returns void.class
A wildcard type argument.Methods in com.github.javaparser.ast.type with parameters of type NodeModifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
-
Uses of Node in com.github.javaparser.ast.validator
Classes in com.github.javaparser.ast.validator with type parameters of type NodeModifier and TypeClassDescriptionclass
SimpleValidator<N extends Node>
Runs a validator on all nodes of a certain type, and adds a problem for all nodes that pass a condition.class
SingleNodeTypeValidator<N extends Node>
Runs a validator on all nodes of a certain type.interface
TypedValidator<N extends Node>
A validator that validates a known node type.Methods in com.github.javaparser.ast.validator with parameters of type NodeModifier and TypeMethodDescriptionvoid
SingleNodeTypeValidator.accept(Node node, ProblemReporter problemReporter)
void
TreeVisitorValidator.accept(Node node, ProblemReporter reporter)
void
Validator.accept(Node node, ProblemReporter problemReporter)
void
Validators.accept(Node node, ProblemReporter problemReporter)
void
VisitorValidator.accept(Node node, ProblemReporter problemReporter)
-
Uses of Node in com.github.javaparser.ast.validator.postprocessors
Method parameters in com.github.javaparser.ast.validator.postprocessors with type arguments of type NodeModifier and TypeMethodDescriptionvoid
PostProcessors.process(ParseResult<? extends Node> result, ParserConfiguration configuration)
-
Uses of Node in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with type parameters of type NodeMethods in com.github.javaparser.ast.visitor that return NodeModifier and TypeMethodDescriptionCloneVisitor.visit(ImportDeclaration n, Object arg)
ModifierVisitor.visit(ImportDeclaration n, A arg)
Methods in com.github.javaparser.ast.visitor with parameters of type NodeModifier and TypeMethodDescriptionGenericVisitorWithDefaults.defaultAction(Node n, A arg)
This will be called by every node visit method that is not overridden.void
VoidVisitorWithDefaults.defaultAction(Node n, A arg)
This will be called by every node visit method that is not overridden.static boolean
static boolean
static boolean
static int
static int
static int
abstract void
Process the given node.void
TreeVisitor.visitBreadthFirst(Node node)
https://en.wikipedia.org/wiki/Breadth-first_searchvoid
TreeVisitor.visitDirectChildren(Node node)
Performs a simple traversal over all nodes that have the passed node as their parent.void
TreeVisitor.visitLeavesFirst(Node node)
void
TreeVisitor.visitPostOrder(Node node)
Performs a post-order node traversal starting with a given node.void
TreeVisitor.visitPreOrder(Node node)
Performs a pre-order node traversal starting with a given node. -
Uses of Node in com.github.javaparser.metamodel
Methods in com.github.javaparser.metamodel that return NodeModifier and TypeMethodDescriptionCreates a new node of this type.Methods in com.github.javaparser.metamodel that return types with arguments of type NodeMethods in com.github.javaparser.metamodel with parameters of type NodeModifier and TypeMethodDescriptionIntrospects the node to get the value from this field.Method parameters in com.github.javaparser.metamodel with type arguments of type NodeModifier and TypeMethodDescriptionboolean
boolean
Constructor parameters in com.github.javaparser.metamodel with type arguments of type NodeModifierConstructorDescriptionprotected
AnnotationExprMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
BaseNodeMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
BodyDeclarationMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
CallableDeclarationMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
CommentMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
ExpressionMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
LiteralExprMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
LiteralStringValueExprMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
ModuleDirectiveMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
NodeMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
ReferenceTypeMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
StatementMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
TypeDeclarationMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
protected
TypeMetaModel(Optional<BaseNodeMetaModel> superNodeMetaModel, Class<? extends Node> type, String name, String packageName, boolean isAbstract, boolean hasWildcard)
-
Uses of Node in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type NodeModifier and TypeMethodDescriptionstatic String
ConcreteSyntaxModel.genericPrettyPrint(Node node)
static void
ConcreteSyntaxModel.genericPrettyPrint(Node node, SourcePrinter printer)
void
DotPrinter.output(Node node, String parentNodeName, String name, StringBuilder builder)
void
XmlPrinter.output(Node node, String name, int level, StringBuilder builder)
void
YamlPrinter.output(Node node, String name, int level, StringBuilder builder)
Deprecated.static void
static void
Method parameters in com.github.javaparser.printer with type arguments of type Node -
Uses of Node in com.github.javaparser.printer.concretesyntaxmodel
Methods in com.github.javaparser.printer.concretesyntaxmodel with parameters of type NodeModifier and TypeMethodDescriptionCsmToken.getContent(Node node)
int
CsmAttribute.getTokenType(Node node, String text, String tokenText)
Obtain the token type corresponding to the specific value of the attribute.void
CsmAttribute.prettyPrint(Node node, SourcePrinter printer)
void
CsmChar.prettyPrint(Node node, SourcePrinter printer)
void
CsmComment.prettyPrint(Node node, SourcePrinter printer)
void
CsmConditional.prettyPrint(Node node, SourcePrinter printer)
void
CsmElement.prettyPrint(Node node, SourcePrinter printer)
void
CsmIndent.prettyPrint(Node node, SourcePrinter printer)
void
CsmList.prettyPrint(Node node, SourcePrinter printer)
void
CsmMix.prettyPrint(Node node, SourcePrinter printer)
void
CsmNone.prettyPrint(Node node, SourcePrinter printer)
void
CsmOrphanCommentsEnding.prettyPrint(Node node, SourcePrinter printer)
void
CsmSequence.prettyPrint(Node node, SourcePrinter printer)
void
CsmSingleReference.prettyPrint(Node node, SourcePrinter printer)
void
CsmString.prettyPrint(Node node, SourcePrinter printer)
void
CsmTextBlock.prettyPrint(Node node, SourcePrinter printer)
void
CsmToken.prettyPrint(Node node, SourcePrinter printer)
void
CsmUnindent.prettyPrint(Node node, SourcePrinter printer)
-
Uses of Node in com.github.javaparser.printer.lexicalpreservation
Methods in com.github.javaparser.printer.lexicalpreservation with type parameters of type NodeModifier and TypeMethodDescriptionstatic <N extends Node>
NLexicalPreservingPrinter.setup(N node)
Prepares the node so it can be used in the print methods.Methods in com.github.javaparser.printer.lexicalpreservation that return NodeMethods in com.github.javaparser.printer.lexicalpreservation with parameters of type NodeModifier and TypeMethodDescriptionstatic String
Print a Node into a String, preserving the lexical information.static void
Print a Node into a Writer, preserving the lexical information.Method parameters in com.github.javaparser.printer.lexicalpreservation with type arguments of type NodeModifier and TypeMethodDescriptionabstract boolean
TextElement.isChildOfClass(Class<? extends Node> nodeClass)
Is this TextElement representing a child of the given class? -
Uses of Node in com.github.javaparser.printer.lexicalpreservation.changes
Methods in com.github.javaparser.printer.lexicalpreservation.changes with parameters of type NodeModifier and TypeMethodDescriptiondefault boolean
Change.evaluate(CsmConditional csmConditional, Node node)
Change.getValue(ObservableProperty property, Node node)
ListAdditionChange.getValue(ObservableProperty property, Node node)
ListRemovalChange.getValue(ObservableProperty property, Node node)
ListReplacementChange.getValue(ObservableProperty property, Node node)
NoChange.getValue(ObservableProperty property, Node node)
PropertyChange.getValue(ObservableProperty property, Node node)
Constructors in com.github.javaparser.printer.lexicalpreservation.changes with parameters of type NodeModifierConstructorDescriptionListAdditionChange(ObservableProperty observableProperty, int index, Node nodeAdded)
ListReplacementChange(ObservableProperty observableProperty, int index, Node newValue)
-
Uses of Node in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution with parameters of type NodeModifier and TypeMethodDescription<T> T
SymbolResolver.resolveDeclaration(Node node, Class<T> resultClass)
For a reference it would find the corresponding declaration. -
Uses of Node in com.github.javaparser.resolution.declarations
Classes in com.github.javaparser.resolution.declarations with type parameters of type NodeModifier and TypeInterfaceDescriptioninterface
AssociableToAST<N extends Node>
A declaration that can be potentially associated with an AST node. -
Uses of Node in com.github.javaparser.utils
Classes in com.github.javaparser.utils with type parameters of type NodeModifier and TypeClassDescriptionclass
VisitorList<N extends Node>
A list that overrides the equals and hashcode calculation of the added nodes by using another equals and hashcode visitor for those methods.class
VisitorMap<N extends Node,V>
A map that overrides the equals and hashcode calculation of the added nodes by using another equals and hashcode visitor for those methods.class
VisitorSet<N extends Node>
A set that overrides the equals and hashcode calculation of the added nodes by using another equals and hashcode visitor for those methods.Methods in com.github.javaparser.utils with type parameters of type NodeModifier and TypeMethodDescriptionstatic <T extends Node>
voidPositionUtils.sortByBeginPosition(NodeList<T> nodes)
static <T extends Node>
voidPositionUtils.sortByBeginPosition(List<T> nodes)
static <T extends Node>
voidPositionUtils.sortByBeginPosition(List<T> nodes, boolean ignoringAnnotations)
Methods in com.github.javaparser.utils with parameters of type NodeModifier and TypeMethodDescriptionstatic boolean
PositionUtils.areInOrder(Node a, Node b)
static boolean
PositionUtils.areInOrder(Node a, Node b, boolean ignoringAnnotations)
static AnnotationExpr
PositionUtils.getLastAnnotation(Node node)
static boolean
Utils.hasUnaryMinusAsParent(Node n)
Checks, if the parent is a unary expression with a minus operator.static boolean
PositionUtils.nodeContains(Node container, Node other, boolean ignoringAnnotations)
Compare the position of two nodes.
findAll(Class)
but be aware that findAll also considers the initial node.