Uses of Class
com.github.javaparser.ast.Node
-
-
Uses of Node in com.github.javaparser
Classes in com.github.javaparser with type parameters of type Node Modifier and Type Class Description (package private) classRangedList<T extends Node>Helper class forGeneratedJavaParserMethods in com.github.javaparser with type parameters of type Node Modifier and Type Method Description (package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. add(NodeList<T> list, T obj)Add obj to list and return it.(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. addWhenNotNull(NodeList<T> list, T obj)Add obj to list only when list is not null(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. emptyList()Quickly create a new NodeListprivate static <T extends Node>
TStaticJavaParser. handleResult(ParseResult<T> result)<N extends Node>
ParseResult<N>JavaParser. parse(ParseStart<N> start, Provider provider)Parses source code.(package private) <T extends Node>
NodeList<T>GeneratedJavaParserBase. prepend(NodeList<T> list, T obj)Add obj to list at position posMethods in com.github.javaparser that return Node Modifier and Type Method Description NodeHasParentNode. 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 Node Modifier and Type Method Description java.util.Optional<Node>HasParentNode. getParentNode()Returns the parent node, orOptional.emptyif no parent is set.Methods in com.github.javaparser with parameters of type Node Modifier and Type Method Description private booleanCommentsInserter. attributeLineCommentToNodeOrChild(Node node, LineComment lineComment)(package private) voidCommentsInserter. insertComments(Node node, java.util.TreeSet<Comment> commentsToAttribute)This method try to attributes the nodes received to child of the node.default booleanHasParentNode. isDescendantOf(Node ancestor)Determines whether thisHasParentNodenode is a descendant of the given node.(package private) JavaTokenGeneratedJavaParserBase. orIfInvalid(JavaToken firstChoice, Node secondChoice)private voidGeneratedJavaParserBase. propagateRangeGrowthOnRight(Node node, Node endNode)Propagate expansion of the range on the right to the parent.(package private) TokenRangeGeneratedJavaParserBase. range(Node begin, Node end)Return a TokenRange spanning from begin to end(package private) TokenRangeGeneratedJavaParserBase. range(Node begin, JavaToken end)Return a TokenRange spanning from begin to end(package private) TokenRangeGeneratedJavaParserBase. range(JavaToken begin, Node end)Return a TokenRange spanning from begin to endTHasParentNode. setParentNode(Node parentNode)Sets the parent node.private booleanCommentsInserter. thereAreLinesBetween(Node a, Node b)Method parameters in com.github.javaparser with type arguments of type Node Modifier and Type Method Description private voidCommentsInserter. attributeLineCommentsOnSameLine(java.util.TreeSet<Comment> commentsToAttribute, java.util.List<Node> children)voidParseResult.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 Node Modifier and Type Class Description classNodeList<N extends Node>A list of nodes.Subclasses of Node in com.github.javaparser.ast Modifier and Type Class Description classArrayCreationLevelInnew int[1][2];there are two ArrayCreationLevel objects, the first one contains the expression "1", the second the expression "2".classCompilationUnitThis class represents the entire compilation unit.classImportDeclarationAn import declaration.classModifierA modifier, like private, public, or volatile.classPackageDeclarationA package declaration.Fields in com.github.javaparser.ast declared as Node Modifier and Type Field Description private NodeNode.ParentsVisitor. nodeprivate NodeNode. parentNodeprivate NodeNodeList. parentNodeprivate NodeNode.PostOrderIterator. rootFields in com.github.javaparser.ast with type parameters of type Node Modifier and Type Field Description private java.util.List<Node>Node. childNodesprivate java.util.Iterator<Node>Node.DirectChildrenIterator. childrenIteratorprivate java.util.Stack<java.util.List<Node>>Node.PostOrderIterator. nodesStackprivate java.util.Queue<Node>Node.BreadthFirstIterator. queueprivate java.util.Stack<Node>Node.PreOrderIterator. stackMethods in com.github.javaparser.ast with type parameters of type Node Modifier and Type Method Description <T extends Node>
java.util.List<T>Node. findAll(java.lang.Class<T> nodeType)Walks the AST with pre-order traversal, returning all nodes of type "nodeType".<T extends Node>
java.util.List<T>Node. findAll(java.lang.Class<T> nodeType, java.util.function.Predicate<T> predicate)Walks the AST with pre-order traversal, returning all nodes of type "nodeType" that match the predicate.<N extends Node>
java.util.Optional<N>Node. findFirst(java.lang.Class<N> nodeType)Walks the AST with pre-order traversal, returning the first node of type "nodeType" or empty() if none is found.<N extends Node>
java.util.Optional<N>Node. findFirst(java.lang.Class<N> nodeType, java.util.function.Predicate<N> predicate)Walks the AST with pre-order traversal, returning the first node of type "nodeType" that matches "predicate" or empty() if none is found.<N extends Node>
java.util.List<N>Node. getChildNodesByType(java.lang.Class<N> clazz)Deprecated.usefindAll(Class)but be aware that findAll also considers the initial node.<N extends Node>
java.util.List<N>Node. getNodesByType(java.lang.Class<N> clazz)Deprecated.usefindAll(Class)but be aware that findAll also considers the initial node.static <X extends Node>
NodeList<X>NodeList. nodeList(NodeList<X> nodes)static <X extends Node>
NodeList<X>NodeList. nodeList(java.util.Collection<X> nodes)static <X extends Node>
NodeList<X>NodeList. nodeList(X... nodes)static <T extends Node>
java.util.stream.Collector<T,NodeList<T>,NodeList<T>>NodeList. toNodeList()<T extends Node>
voidNode. walk(java.lang.Class<T> nodeType, java.util.function.Consumer<T> consumer)Walks the AST with pre-order traversal, calling the consumer for every node of type "nodeType".Methods in com.github.javaparser.ast that return Node Modifier and Type Method Description NodeNode. clone()NodeNode. findRootNode()Finds the root node of this AST by finding the topmost parent.NodeNode. getParentNodeForChildren()NodeNodeList. getParentNodeForChildren()NodeNode.BreadthFirstIterator. next()NodeNode.DirectChildrenIterator. next()NodeNode.ParentsVisitor. next()NodeNode.PostOrderIterator. next()NodeNode.PreOrderIterator. next()private NodeNode.PostOrderIterator. nextFromLevel()NodeNode. removeComment()NodeNode. setBlockComment(java.lang.String comment)Use this to store additional information to this node.NodeNode. setComment(Comment comment)Use this to store additional information to this node.NodeNode. setLineComment(java.lang.String comment)Use this to store additional information to this node.NodeNode. setParentNode(Node newParentNode)Assign a new parent to this node, removing it from the list of children of the previous parent, if any.NodeNode. setParsed(Node.Parsedness parsed)Used by the parser to flag unparsable nodes.NodeNode. setRange(Range range)NodeNode. setTokenRange(TokenRange tokenRange)Methods in com.github.javaparser.ast that return types with arguments of type Node Modifier and Type Method Description java.util.List<Node>Node. getChildNodes()Contains all nodes that have this node set as their parent.java.util.Optional<Node>Node. getParentNode()java.util.Optional<Node>NodeList. getParentNode()java.util.stream.Stream<Node>Node. stream()Make a stream of nodes using pre-order traversal.java.util.stream.Stream<Node>Node. stream(Node.TreeTraversal traversal)Make a stream of nodes using traversal algorithm "traversal".private java.lang.Iterable<Node>Node. treeIterable(Node.TreeTraversal traversal)private java.util.Iterator<Node>Node. treeIterator(Node.TreeTraversal traversal)Methods in com.github.javaparser.ast with parameters of type Node Modifier and Type Method Description private voidNode.PostOrderIterator. fillStackToLeaf(Node node)booleanNode. isAncestorOf(Node descendant)Determines whether this node is an ancestor of the given node.static <X extends Node>
NodeList<X>NodeList. nodeList(X... nodes)private voidNodeList. notifyElementAdded(int index, Node nodeAddedOrRemoved)private voidNodeList. notifyElementRemoved(int index, Node nodeAddedOrRemoved)private voidNodeList. notifyElementReplaced(int index, Node nodeAddedOrRemoved)booleanArrayCreationLevel. remove(Node node)booleanCompilationUnit. remove(Node node)booleanImportDeclaration. remove(Node node)booleanModifier. remove(Node node)booleanNode. remove(Node node)booleanNodeList. remove(Node node)booleanPackageDeclaration. remove(Node node)booleanArrayCreationLevel. replace(Node node, Node replacementNode)booleanCompilationUnit. replace(Node node, Node replacementNode)booleanImportDeclaration. replace(Node node, Node replacementNode)booleanModifier. replace(Node node, Node replacementNode)booleanNode. replace(Node node)Try to replace this node in the parent with the supplied node.booleanNode. replace(Node node, Node replacementNode)booleanPackageDeclaration. replace(Node node, Node replacementNode)protected voidNode. setAsParentNodeOf(Node childNode)private voidNodeList. setAsParentNodeOf(Node childNode)NodeNode. setParentNode(Node newParentNode)Assign a new parent to this node, removing it from the list of children of the previous parent, if any.NodeList<N>NodeList. setParentNode(Node parentNode)Sets the parentNodeMethod parameters in com.github.javaparser.ast with type arguments of type Node Modifier and Type Method Description <T> java.util.Optional<T>Node. findFirst(Node.TreeTraversal traversal, java.util.function.Function<Node,java.util.Optional<T>> consumer)Walks the AST, applying the function for every node, with traversal algorithm "traversal".protected voidNode. setAsParentNodeOf(NodeList<? extends Node> list)private voidNodeList. setAsParentNodeOf(java.util.List<? extends Node> childNodes)voidNode. walk(Node.TreeTraversal traversal, java.util.function.Consumer<Node> consumer)Walks the AST, calling the consumer for every node, with traversal algorithm "traversal".voidNode. walk(java.util.function.Consumer<Node> consumer)Walks the AST, calling the consumer for every node with pre-order traversal.Constructors in com.github.javaparser.ast with parameters of type Node Constructor Description BreadthFirstIterator(Node node)DirectChildrenIterator(Node node)NodeList(N... n)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.body Modifier and Type Class Description classAnnotationDeclarationAn annotation type declaration.@interface X { ...classAnnotationMemberDeclarationThe "int id();" in@interface X { int id(); }classBodyDeclaration<T extends BodyDeclaration<?>>Any declaration that can appear between the { and } of a class, interface, or enum.classCallableDeclaration<T extends CallableDeclaration<?>>Represents a declaration which is callable eg.classClassOrInterfaceDeclarationA definition of a class or interface.class X { ...classConstructorDeclarationA constructor declaration:class X { X() { } }where X(){} is the constructor declaration.classEnumConstantDeclarationOne of the values an enum can take.classEnumDeclarationThe declaration of an enum.enum X { ...classFieldDeclarationThe declaration of a field in a class.classInitializerDeclarationA (possibly static) initializer body.classMethodDeclarationA method declaration.classParameterThe parameters to a method or lambda.classReceiverParameterThe rather obscure "receiver parameter" feature of Java.classTypeDeclaration<T extends TypeDeclaration<?>>A base class for all types of type declarations.classVariableDeclaratorThe 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 Node Modifier and Type Method Description booleanAnnotationDeclaration. remove(Node node)booleanAnnotationMemberDeclaration. remove(Node node)booleanBodyDeclaration. remove(Node node)booleanCallableDeclaration. remove(Node node)booleanClassOrInterfaceDeclaration. remove(Node node)booleanConstructorDeclaration. remove(Node node)booleanEnumConstantDeclaration. remove(Node node)booleanEnumDeclaration. remove(Node node)booleanFieldDeclaration. remove(Node node)booleanInitializerDeclaration. remove(Node node)booleanMethodDeclaration. remove(Node node)booleanParameter. remove(Node node)booleanReceiverParameter. remove(Node node)booleanTypeDeclaration. remove(Node node)booleanVariableDeclarator. remove(Node node)booleanAnnotationDeclaration. replace(Node node, Node replacementNode)booleanAnnotationMemberDeclaration. replace(Node node, Node replacementNode)booleanBodyDeclaration. replace(Node node, Node replacementNode)booleanCallableDeclaration. replace(Node node, Node replacementNode)booleanClassOrInterfaceDeclaration. replace(Node node, Node replacementNode)booleanConstructorDeclaration. replace(Node node, Node replacementNode)booleanEnumConstantDeclaration. replace(Node node, Node replacementNode)booleanEnumDeclaration. replace(Node node, Node replacementNode)booleanFieldDeclaration. replace(Node node, Node replacementNode)booleanInitializerDeclaration. replace(Node node, Node replacementNode)booleanMethodDeclaration. replace(Node node, Node replacementNode)booleanParameter. replace(Node node, Node replacementNode)booleanReceiverParameter. replace(Node node, Node replacementNode)booleanTypeDeclaration. replace(Node node, Node replacementNode)booleanVariableDeclarator. replace(Node node, Node replacementNode) -
Uses of Node in com.github.javaparser.ast.comments
Subclasses of Node in com.github.javaparser.ast.comments Modifier and Type Class Description classBlockCommentAST node that represent block comments.classCommentAbstract class for all AST nodes that represent comments.classJavadocCommentA Javadoc comment.classLineCommentAST node that represent line comments.Fields in com.github.javaparser.ast.comments declared as Node Modifier and Type Field Description private NodeComment. commentedNodeMethods in com.github.javaparser.ast.comments that return Node Modifier and Type Method Description NodeComment. findRootNode()NodeComment. setComment(Comment comment)Methods in com.github.javaparser.ast.comments that return types with arguments of type Node Modifier and Type Method Description java.util.Optional<Node>Comment. getCommentedNode()Methods in com.github.javaparser.ast.comments with parameters of type Node Modifier and Type Method Description booleanBlockComment. remove(Node node)booleanComment. remove(Node node)booleanJavadocComment. remove(Node node)booleanLineComment. remove(Node node)booleanBlockComment. replace(Node node, Node replacementNode)booleanComment. replace(Node node, Node replacementNode)booleanJavadocComment. replace(Node node, Node replacementNode)booleanLineComment. replace(Node node, Node replacementNode)CommentComment. setCommentedNode(Node commentedNode)Sets the commentedNode -
Uses of Node in com.github.javaparser.ast.expr
Subclasses of Node in com.github.javaparser.ast.expr Modifier and Type Class Description classAnnotationExprA base class for the different types of annotations.classArrayAccessExprArray brackets [] being used to get a value from an array.classArrayCreationExprnew int[5][4][][]ornew int[][]{{1},{2,3}}.classArrayInitializerExprThe initialization of an array.classAssignExprAn assignment expression.classBinaryExprAn expression with an expression on the left, an expression on the right, and an operator in the middle.classBooleanLiteralExprThe boolean literals.classCastExprA typecast.classCharLiteralExprA literal character.classClassExprDefines an expression that accesses the class of a type.classConditionalExprThe ternary conditional expression.classDoubleLiteralExprA float or a double constant.classEnclosedExprAn expression between ( ).classExpressionA base class for all expressions.classFieldAccessExprAccess of a field of an object or a class.classInstanceOfExprUsage of the instanceof operator.classIntegerLiteralExprAll ways to specify an int literal.classLambdaExprA lambda expressionclassLiteralExprA base class for all literal expressions.classLiteralStringValueExprAny literal value that is stored internally as a String.classLongLiteralExprAll ways to specify a long literal.classMarkerAnnotationExprAn annotation that uses only the annotation type name.classMemberValuePairA value for a member of an annotation.classMethodCallExprA method call on an object or a class.classMethodReferenceExprMethod reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.classNameA name that may consist of multiple identifiers.classNameExprWhenever a SimpleName is used in an expression, it is wrapped in NameExpr.classNormalAnnotationExprAn annotation that has zero or more key-value pairs.@Mapping(a=5, d=10)classNullLiteralExprA literal "null".classObjectCreationExprA constructor call.classSimpleNameA name that consists of a single identifier.classSingleMemberAnnotationExprAn annotation that has a single value.classStringLiteralExprA literal string.classSuperExprAn occurrence of the "super" keyword.classSwitchExprThe switch expressionclassTextBlockLiteralExprA text blockclassThisExprAn occurrence of the "this" keyword.classTypeExprThis class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.classUnaryExprAn expression where an operator is applied to a single expression.classVariableDeclarationExprA declaration of variables.Methods in com.github.javaparser.ast.expr with parameters of type Node Modifier and Type Method Description booleanAnnotationExpr. remove(Node node)booleanArrayAccessExpr. remove(Node node)booleanArrayCreationExpr. remove(Node node)booleanArrayInitializerExpr. remove(Node node)booleanAssignExpr. remove(Node node)booleanBinaryExpr. remove(Node node)booleanBooleanLiteralExpr. remove(Node node)booleanCastExpr. remove(Node node)booleanCharLiteralExpr. remove(Node node)booleanClassExpr. remove(Node node)booleanConditionalExpr. remove(Node node)booleanDoubleLiteralExpr. remove(Node node)booleanEnclosedExpr. remove(Node node)booleanExpression. remove(Node node)booleanFieldAccessExpr. remove(Node node)booleanInstanceOfExpr. remove(Node node)booleanIntegerLiteralExpr. remove(Node node)booleanLambdaExpr. remove(Node node)booleanLiteralExpr. remove(Node node)booleanLiteralStringValueExpr. remove(Node node)booleanLongLiteralExpr. remove(Node node)booleanMarkerAnnotationExpr. remove(Node node)booleanMemberValuePair. remove(Node node)booleanMethodCallExpr. remove(Node node)booleanMethodReferenceExpr. remove(Node node)booleanName. remove(Node node)booleanNameExpr. remove(Node node)booleanNormalAnnotationExpr. remove(Node node)booleanNullLiteralExpr. remove(Node node)booleanObjectCreationExpr. remove(Node node)booleanSimpleName. remove(Node node)booleanSingleMemberAnnotationExpr. remove(Node node)booleanStringLiteralExpr. remove(Node node)booleanSuperExpr. remove(Node node)booleanSwitchExpr. remove(Node node)booleanTextBlockLiteralExpr. remove(Node node)booleanThisExpr. remove(Node node)booleanTypeExpr. remove(Node node)booleanUnaryExpr. remove(Node node)booleanVariableDeclarationExpr. remove(Node node)booleanAnnotationExpr. replace(Node node, Node replacementNode)booleanArrayAccessExpr. replace(Node node, Node replacementNode)booleanArrayCreationExpr. replace(Node node, Node replacementNode)booleanArrayInitializerExpr. replace(Node node, Node replacementNode)booleanAssignExpr. replace(Node node, Node replacementNode)booleanBinaryExpr. replace(Node node, Node replacementNode)booleanBooleanLiteralExpr. replace(Node node, Node replacementNode)booleanCastExpr. replace(Node node, Node replacementNode)booleanCharLiteralExpr. replace(Node node, Node replacementNode)booleanClassExpr. replace(Node node, Node replacementNode)booleanConditionalExpr. replace(Node node, Node replacementNode)booleanDoubleLiteralExpr. replace(Node node, Node replacementNode)booleanEnclosedExpr. replace(Node node, Node replacementNode)booleanExpression. replace(Node node, Node replacementNode)booleanFieldAccessExpr. replace(Node node, Node replacementNode)booleanInstanceOfExpr. replace(Node node, Node replacementNode)booleanIntegerLiteralExpr. replace(Node node, Node replacementNode)booleanLambdaExpr. replace(Node node, Node replacementNode)booleanLiteralExpr. replace(Node node, Node replacementNode)booleanLiteralStringValueExpr. replace(Node node, Node replacementNode)booleanLongLiteralExpr. replace(Node node, Node replacementNode)booleanMarkerAnnotationExpr. replace(Node node, Node replacementNode)booleanMemberValuePair. replace(Node node, Node replacementNode)booleanMethodCallExpr. replace(Node node, Node replacementNode)booleanMethodReferenceExpr. replace(Node node, Node replacementNode)booleanName. replace(Node node, Node replacementNode)booleanNameExpr. replace(Node node, Node replacementNode)booleanNormalAnnotationExpr. replace(Node node, Node replacementNode)booleanNullLiteralExpr. replace(Node node, Node replacementNode)booleanObjectCreationExpr. replace(Node node, Node replacementNode)booleanSimpleName. replace(Node node, Node replacementNode)booleanSingleMemberAnnotationExpr. replace(Node node, Node replacementNode)booleanStringLiteralExpr. replace(Node node, Node replacementNode)booleanSuperExpr. replace(Node node, Node replacementNode)booleanSwitchExpr. replace(Node node, Node replacementNode)booleanTextBlockLiteralExpr. replace(Node node, Node replacementNode)booleanThisExpr. replace(Node node, Node replacementNode)booleanTypeExpr. replace(Node node, Node replacementNode)booleanUnaryExpr. replace(Node node, Node replacementNode)booleanVariableDeclarationExpr. replace(Node node, Node replacementNode) -
Uses of Node in com.github.javaparser.ast.modules
Subclasses of Node in com.github.javaparser.ast.modules Modifier and Type Class Description classModuleDeclarationA Java 9 Jigsaw module declaration.classModuleDirectiveA module directive.classModuleExportsDirectiveAn exports directive in module-info.java.classModuleOpensDirectiveAn opens directive in module-info.java.classModuleProvidesDirectiveA provides directive in module-info.java.classModuleRequiresDirectiveA require directive in module-info.java.classModuleUsesDirectiveA uses directive in module-info.java.Methods in com.github.javaparser.ast.modules with parameters of type Node Modifier and Type Method Description booleanModuleDeclaration. remove(Node node)booleanModuleDirective. remove(Node node)booleanModuleExportsDirective. remove(Node node)booleanModuleOpensDirective. remove(Node node)booleanModuleProvidesDirective. remove(Node node)booleanModuleRequiresDirective. remove(Node node)booleanModuleUsesDirective. remove(Node node)booleanModuleDeclaration. replace(Node node, Node replacementNode)booleanModuleDirective. replace(Node node, Node replacementNode)booleanModuleExportsDirective. replace(Node node, Node replacementNode)booleanModuleOpensDirective. replace(Node node, Node replacementNode)booleanModuleProvidesDirective. replace(Node node, Node replacementNode)booleanModuleRequiresDirective. replace(Node node, Node replacementNode)booleanModuleUsesDirective. replace(Node node, Node replacementNode) -
Uses of Node in com.github.javaparser.ast.nodeTypes
Classes in com.github.javaparser.ast.nodeTypes with type parameters of type Node Modifier and Type Interface Description interfaceNodeWithAnnotations<N extends Node>A node that can be annotated.interfaceNodeWithArguments<N extends Node>A node with arguments.interfaceNodeWithBlockStmt<N extends Node>A node with a body that is a BlockStmt.interfaceNodeWithBody<N extends Node>interfaceNodeWithCondition<N extends Node>interfaceNodeWithExpression<N extends Node>A node that has an expression in it.interfaceNodeWithExtends<N extends Node>A node that extends other types.interfaceNodeWithIdentifier<N extends Node>interfaceNodeWithImplements<N extends Node>A node that implements other types.interfaceNodeWithJavadoc<N extends Node>A node that can be documented with a Javadoc comment.interfaceNodeWithMembers<N extends Node>A node having members.interfaceNodeWithModifiers<N extends Node>A Node with Modifiers.interfaceNodeWithName<N extends Node>A node with a (qualified) name.interfaceNodeWithOptionalBlockStmt<N extends Node>A node with a body that is a BlockStmt, which is optional.interfaceNodeWithOptionalLabel<T extends Node>A node that has an optional label.interfaceNodeWithOptionalScope<N extends Node>Represents a node which has an optional scope expression eg.interfaceNodeWithParameters<N extends Node>interfaceNodeWithScope<N extends Node>Represents a node which has a required scope expression eg.interfaceNodeWithSimpleName<N extends Node>A node with a name.interfaceNodeWithStatements<N extends Node>A node that contains a list of statements.interfaceNodeWithThrownExceptions<N extends Node>A node that declares the types of exception it throws.interfaceNodeWithType<N extends Node,T extends Type>A node with a type.interfaceNodeWithTypeArguments<N extends Node>A node that can have type arguments.interfaceNodeWithTypeParameters<N extends Node>A node that can have type parameters.interfaceNodeWithVariables<N extends Node>A node which has a list of variables.Methods in com.github.javaparser.ast.nodeTypes that return Node Modifier and Type Method Description NodeNodeWithJavadoc. setComment(Comment comment)Methods in com.github.javaparser.ast.nodeTypes with parameters of type Node Modifier and Type Method Description default booleanNodeWithRange. containsWithin(Node other)Deprecated.useNodeWithRange.containsWithinRange(Node)instead.default booleanNodeWithRange. containsWithinRange(Node other)Checks whether the range of the givenNodeis contained within the range of thisNodeWithRange.booleanSwitchNode. remove(Node node)booleanSwitchNode. replace(Node node, Node replacementNode) -
Uses of Node in com.github.javaparser.ast.nodeTypes.modifiers
Classes in com.github.javaparser.ast.nodeTypes.modifiers with type parameters of type Node Modifier and Type Interface Description interfaceNodeWithAbstractModifier<N extends Node>A node that can be abstract.interfaceNodeWithAccessModifiers<N extends Node>A node that can be public, protected, and/or private.interfaceNodeWithFinalModifier<N extends Node>A node that can be final.interfaceNodeWithPrivateModifier<N extends Node>A node that can be private.interfaceNodeWithProtectedModifier<N extends Node>A node that can be protected.interfaceNodeWithPublicModifier<N extends Node>A node that can be public.interfaceNodeWithStaticModifier<N extends Node>A node that can be static.interfaceNodeWithStrictfpModifier<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 Node Modifier and Type Method Description NodeObservableProperty. getValueAsSingleReference(Node node)Methods in com.github.javaparser.ast.observer that return types with arguments of type Node Modifier and Type Method Description NodeList<? extends Node>ObservableProperty. getValueAsMultipleReference(Node node)Methods in com.github.javaparser.ast.observer with parameters of type Node Modifier and Type Method Description voidPropagatingAstObserver. concreteListChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidPropagatingAstObserver. concreteListReplacement(NodeList observedNode, int index, Node oldValue, Node newValue)voidPropagatingAstObserver. concretePropertyChange(Node observedNode, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)java.lang.ObjectObservableProperty. getRawValue(Node node)java.lang.BooleanObservableProperty. getValueAsBooleanAttribute(Node node)java.util.Collection<?>ObservableProperty. getValueAsCollection(Node node)NodeList<? extends Node>ObservableProperty. getValueAsMultipleReference(Node node)NodeObservableProperty. getValueAsSingleReference(Node node)java.lang.StringObservableProperty. getValueAsStringAttribute(Node node)private booleanObservableProperty. hasMethod(Node node, java.lang.String name)booleanObservableProperty. isNull(Node node)booleanObservableProperty. isNullOrEmpty(Node node)booleanObservableProperty. isNullOrNotPresent(Node node)voidAstObserver. listChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)A list is changedvoidAstObserverAdapter. listChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidPropagatingAstObserver. listChange(NodeList observedNode, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidAstObserver. listReplacement(NodeList observedNode, int index, Node oldNode, Node newNode)voidAstObserverAdapter. listReplacement(NodeList observedNode, int index, Node oldNode, Node newNode)voidPropagatingAstObserver. listReplacement(NodeList observedNode, int index, Node oldNode, Node newNode)voidAstObserver. parentChange(Node observedNode, Node previousParent, Node newParent)The parent of a node is changedvoidAstObserverAdapter. parentChange(Node observedNode, Node previousParent, Node newParent)voidPropagatingAstObserver. parentChange(Node observedNode, Node previousParent, Node newParent)voidAstObserver. propertyChange(Node observedNode, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)The value of a property is changedvoidAstObserverAdapter. propertyChange(Node observedNode, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)voidPropagatingAstObserver. propertyChange(Node observedNode, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue) -
Uses of Node in com.github.javaparser.ast.stmt
Subclasses of Node in com.github.javaparser.ast.stmt Modifier and Type Class Description classAssertStmtA usage of the keyword "assert"
Inassert dead : "Wasn't expecting to be dead here";the check is "dead" and the message is the string.classBlockStmtStatements in between { and }.classBreakStmtThe break statementclassCatchClauseThe catch part of a try-catch-finally.classContinueStmtA continue statement with an optional label;continue brains;continue;classDoStmtA do-while.classEmptyStmtAn empty statement is a ";" where a statement is expected.classExplicitConstructorInvocationStmtA call to super or this in a constructor or initializer.classExpressionStmtUsed to wrap an expression so that it can take the place of a statement.classForEachStmtA for-each statement.classForStmtThe classic for statementclassIfStmtAn if-then-else statement.classLabeledStmtA statement that is labeled, likelabel123: println("continuing");classLocalClassDeclarationStmtA class declaration inside a method.classReturnStmtThe return statement, with an optional expression to return.classStatementA base class for all statements.classSwitchEntryOne case in a switch statementclassSwitchStmtThe switch statementclassSynchronizedStmtUsage of the synchronized keyword.classThrowStmtUsage of the throw statement.classTryStmtThe try statementclassUnparsableStmtA statement that had parse errors.classWhileStmtA while statement.classYieldStmtThe yield statementMethods in com.github.javaparser.ast.stmt with parameters of type Node Modifier and Type Method Description booleanAssertStmt. remove(Node node)booleanBlockStmt. remove(Node node)booleanBreakStmt. remove(Node node)booleanCatchClause. remove(Node node)booleanContinueStmt. remove(Node node)booleanDoStmt. remove(Node node)booleanEmptyStmt. remove(Node node)booleanExplicitConstructorInvocationStmt. remove(Node node)booleanExpressionStmt. remove(Node node)booleanForEachStmt. remove(Node node)booleanForStmt. remove(Node node)booleanIfStmt. remove(Node node)booleanLabeledStmt. remove(Node node)booleanLocalClassDeclarationStmt. remove(Node node)booleanReturnStmt. remove(Node node)booleanStatement. remove(Node node)booleanSwitchEntry. remove(Node node)booleanSwitchStmt. remove(Node node)booleanSynchronizedStmt. remove(Node node)booleanThrowStmt. remove(Node node)booleanTryStmt. remove(Node node)booleanUnparsableStmt. remove(Node node)booleanWhileStmt. remove(Node node)booleanYieldStmt. remove(Node node)booleanAssertStmt. replace(Node node, Node replacementNode)booleanBlockStmt. replace(Node node, Node replacementNode)booleanBreakStmt. replace(Node node, Node replacementNode)booleanCatchClause. replace(Node node, Node replacementNode)booleanContinueStmt. replace(Node node, Node replacementNode)booleanDoStmt. replace(Node node, Node replacementNode)booleanEmptyStmt. replace(Node node, Node replacementNode)booleanExplicitConstructorInvocationStmt. replace(Node node, Node replacementNode)booleanExpressionStmt. replace(Node node, Node replacementNode)booleanForEachStmt. replace(Node node, Node replacementNode)booleanForStmt. replace(Node node, Node replacementNode)booleanIfStmt. replace(Node node, Node replacementNode)booleanLabeledStmt. replace(Node node, Node replacementNode)booleanLocalClassDeclarationStmt. replace(Node node, Node replacementNode)booleanReturnStmt. replace(Node node, Node replacementNode)booleanStatement. replace(Node node, Node replacementNode)booleanSwitchEntry. replace(Node node, Node replacementNode)booleanSwitchStmt. replace(Node node, Node replacementNode)booleanSynchronizedStmt. replace(Node node, Node replacementNode)booleanThrowStmt. replace(Node node, Node replacementNode)booleanTryStmt. replace(Node node, Node replacementNode)booleanUnparsableStmt. replace(Node node, Node replacementNode)booleanWhileStmt. replace(Node node, Node replacementNode)booleanYieldStmt. replace(Node node, Node replacementNode) -
Uses of Node in com.github.javaparser.ast.type
Subclasses of Node in com.github.javaparser.ast.type Modifier and Type Class Description classArrayTypeTo indicate that a type is an array, it gets wrapped in an ArrayType for every array level it has.classClassOrInterfaceTypeA class or an interface type.classIntersectionTypeRepresents a set of types.classPrimitiveTypeA primitive type.classReferenceTypeBase class for reference types.classTypeBase class for types.classTypeParameterA type parameter.classUnionTypeThe union typeclassUnknownTypeAn unknown parameter type object.classVarTypeA type called "var" waiting for Java to infer it.classVoidTypeThe return type of aMethodDeclarationwhen it returns void.classWildcardTypeA wildcard type argument.Methods in com.github.javaparser.ast.type with parameters of type Node Modifier and Type Method Description booleanArrayType. remove(Node node)booleanClassOrInterfaceType. remove(Node node)booleanIntersectionType. remove(Node node)booleanPrimitiveType. remove(Node node)booleanReferenceType. remove(Node node)booleanType. remove(Node node)booleanTypeParameter. remove(Node node)booleanUnionType. remove(Node node)booleanUnknownType. remove(Node node)booleanVarType. remove(Node node)booleanVoidType. remove(Node node)booleanWildcardType. remove(Node node)booleanArrayType. replace(Node node, Node replacementNode)booleanClassOrInterfaceType. replace(Node node, Node replacementNode)booleanIntersectionType. replace(Node node, Node replacementNode)booleanPrimitiveType. replace(Node node, Node replacementNode)booleanReferenceType. replace(Node node, Node replacementNode)booleanType. replace(Node node, Node replacementNode)booleanTypeParameter. replace(Node node, Node replacementNode)booleanUnionType. replace(Node node, Node replacementNode)booleanUnknownType. replace(Node node, Node replacementNode)booleanVarType. replace(Node node, Node replacementNode)booleanVoidType. replace(Node node, Node replacementNode)booleanWildcardType. replace(Node node, Node replacementNode) -
Uses of Node in com.github.javaparser.ast.validator
Classes in com.github.javaparser.ast.validator with type parameters of type Node Modifier and Type Class Description classSimpleValidator<N extends Node>Runs a validator on all nodes of a certain type, and adds a problem for all nodes that pass a condition.classSingleNodeTypeValidator<N extends Node>Runs a validator on all nodes of a certain type.interfaceTypedValidator<N extends Node>A validator that validates a known node type.Methods in com.github.javaparser.ast.validator with parameters of type Node Modifier and Type Method Description voidSingleNodeTypeValidator. accept(Node node, ProblemReporter problemReporter)voidTreeVisitorValidator. accept(Node node, ProblemReporter reporter)voidValidator. accept(Node node, ProblemReporter problemReporter)voidValidators. accept(Node node, ProblemReporter problemReporter)voidVisitorValidator. accept(Node node, ProblemReporter problemReporter) -
Uses of Node in com.github.javaparser.ast.validator.chunks
Methods in com.github.javaparser.ast.validator.chunks with parameters of type Node Modifier and Type Method Description private static voidUnderscoreKeywordValidator. validateIdentifier(Node n, java.lang.String id, ProblemReporter arg) -
Uses of Node in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with type parameters of type Node Modifier and Type Method Description private <N extends Node>
NodeList<N>CloneVisitor. cloneList(NodeList<N> list, java.lang.Object arg)protected <T extends Node>
TCloneVisitor. cloneNode(java.util.Optional<T> node, java.lang.Object arg)protected <T extends Node>
TCloneVisitor. cloneNode(T node, java.lang.Object arg)private <N extends Node>
NodeList<N>ModifierVisitor. modifyList(NodeList<N> list, A arg)private <N extends Node>
NodeList<N>ModifierVisitor. modifyList(java.util.Optional<NodeList<N>> list, A arg)private <T extends Node>
booleanEqualsVisitor. nodeEquals(java.util.Optional<T> n, java.util.Optional<T> n2)private <T extends Node>
booleanEqualsVisitor. nodeEquals(T n, T n2)private <T extends Node>
booleanNoCommentEqualsVisitor. nodeEquals(java.util.Optional<T> n, java.util.Optional<T> n2)private <T extends Node>
booleanNoCommentEqualsVisitor. nodeEquals(T n, T n2)private <N extends Node>
booleanEqualsVisitor. nodesEquals(NodeList<N> n, NodeList<N> n2)private <T extends Node>
booleanEqualsVisitor. nodesEquals(java.util.List<T> nodes1, java.util.List<T> nodes2)private <T extends Node>
booleanEqualsVisitor. nodesEquals(java.util.Optional<NodeList<T>> n, java.util.Optional<NodeList<T>> n2)private <N extends Node>
booleanNoCommentEqualsVisitor. nodesEquals(NodeList<N> n, NodeList<N> n2)private <T extends Node>
booleanNoCommentEqualsVisitor. nodesEquals(java.util.Optional<NodeList<T>> n, java.util.Optional<NodeList<T>> n2)Methods in com.github.javaparser.ast.visitor that return Node Modifier and Type Method Description NodeCloneVisitor. visit(ImportDeclaration n, java.lang.Object arg)NodeModifierVisitor. visit(ImportDeclaration n, A arg)Methods in com.github.javaparser.ast.visitor with parameters of type Node Modifier and Type Method Description private booleanEqualsVisitor. commonNodeEquality(Node n, Node n2)Check for equality that can be applied to each kind of node, to not repeat it in every method we store that here.private voidCloneVisitor. copyData(Node source, Node destination)RGenericVisitorWithDefaults. defaultAction(Node n, A arg)This will be called by every node visit method that is not overridden.voidVoidVisitorWithDefaults. defaultAction(Node n, A arg)This will be called by every node visit method that is not overridden.static booleanEqualsVisitor. equals(Node n, Node n2)static booleanNoCommentEqualsVisitor. equals(Node n, Node n2)static booleanObjectIdentityEqualsVisitor. equals(Node n, Node n2)static intHashCodeVisitor. hashCode(Node node)static intNoCommentHashCodeVisitor. hashCode(Node node)static intObjectIdentityHashCodeVisitor. hashCode(Node node)abstract voidTreeVisitor. process(Node node)Process the given node.voidTreeVisitor. visitBreadthFirst(Node node)https://en.wikipedia.org/wiki/Breadth-first_searchvoidTreeVisitor. visitDirectChildren(Node node)Performs a simple traversal over all nodes that have the passed node as their parent.voidTreeVisitor. visitLeavesFirst(Node node)voidTreeVisitor. visitPostOrder(Node node)Performs a post-order node traversal starting with a given node.voidTreeVisitor. visitPreOrder(Node node)Performs a pre-order node traversal starting with a given node. -
Uses of Node in com.github.javaparser.metamodel
Fields in com.github.javaparser.metamodel with type parameters of type Node Modifier and Type Field Description private java.lang.Class<? extends Node>BaseNodeMetaModel. typeMethods in com.github.javaparser.metamodel that return Node Modifier and Type Method Description NodeBaseNodeMetaModel. construct(java.util.Map<java.lang.String,java.lang.Object> parameters)Creates a new node of this type.Methods in com.github.javaparser.metamodel that return types with arguments of type Node Modifier and Type Method Description java.lang.Class<? extends Node>BaseNodeMetaModel. getType()Methods in com.github.javaparser.metamodel with parameters of type Node Modifier and Type Method Description java.lang.ObjectPropertyMetaModel. getValue(Node node)Introspects the node to get the value from this field.Method parameters in com.github.javaparser.metamodel with type arguments of type Node Modifier and Type Method Description booleanBaseNodeMetaModel. is(java.lang.Class<? extends Node> c)booleanPropertyMetaModel. is(java.lang.Class<? extends Node> c, java.lang.String fieldName)Constructor parameters in com.github.javaparser.metamodel with type arguments of type Node Constructor Description AnnotationExprMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)BaseNodeMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)BodyDeclarationMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)CallableDeclarationMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)CommentMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)ExpressionMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)LiteralExprMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)LiteralStringValueExprMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)ModuleDirectiveMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)NodeMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)ReferenceTypeMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)StatementMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)TypeDeclarationMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard)TypeMetaModel(java.util.Optional<BaseNodeMetaModel> superNodeMetaModel, java.lang.Class<? extends Node> type, java.lang.String name, java.lang.String packageName, boolean isAbstract, boolean hasWildcard) -
Uses of Node in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type Node Modifier and Type Method Description static java.lang.StringConcreteSyntaxModel. genericPrettyPrint(Node node)static voidConcreteSyntaxModel. genericPrettyPrint(Node node, SourcePrinter printer)java.lang.StringDotPrinter. output(Node node)voidDotPrinter. output(Node node, java.lang.String parentNodeName, java.lang.String name, java.lang.StringBuilder builder)java.lang.StringXmlPrinter. output(Node node)voidXmlPrinter. output(Node node, java.lang.String name, int level, java.lang.StringBuilder builder)java.lang.StringYamlPrinter. output(Node node)voidYamlPrinter. output(Node node, java.lang.String name, int level, java.lang.StringBuilder builder)java.lang.StringPrettyPrinter. print(Node node)static voidXmlPrinter. print(Node node)static voidYamlPrinter. print(Node node)private voidPrettyPrintVisitor. printOrphanCommentsBeforeThisChildNode(Node node)private voidPrettyPrintVisitor. printOrphanCommentsEnding(Node node)Method parameters in com.github.javaparser.printer with type arguments of type Node Modifier and Type Method Description static CsmElementConcreteSyntaxModel. forClass(java.lang.Class<? extends Node> nodeClazz) -
Uses of Node in com.github.javaparser.printer.concretesyntaxmodel
Methods in com.github.javaparser.printer.concretesyntaxmodel with parameters of type Node Modifier and Type Method Description java.lang.StringCsmToken.TokenContentCalculator. calculate(Node node)(package private) booleanCsmConditional.Condition. evaluate(Node node, ObservableProperty property)java.lang.StringCsmToken. getContent(Node node)intCsmAttribute. getTokenType(Node node, java.lang.String text, java.lang.String tokenText)Obtain the token type corresponding to the specific value of the attribute.voidCsmAttribute. prettyPrint(Node node, SourcePrinter printer)voidCsmChar. prettyPrint(Node node, SourcePrinter printer)voidCsmComment. prettyPrint(Node node, SourcePrinter printer)voidCsmConditional. prettyPrint(Node node, SourcePrinter printer)voidCsmElement. prettyPrint(Node node, SourcePrinter printer)voidCsmIndent. prettyPrint(Node node, SourcePrinter printer)voidCsmList. prettyPrint(Node node, SourcePrinter printer)voidCsmMix. prettyPrint(Node node, SourcePrinter printer)voidCsmNone. prettyPrint(Node node, SourcePrinter printer)voidCsmOrphanCommentsEnding. prettyPrint(Node node, SourcePrinter printer)voidCsmSequence. prettyPrint(Node node, SourcePrinter printer)voidCsmSingleReference. prettyPrint(Node node, SourcePrinter printer)voidCsmString. prettyPrint(Node node, SourcePrinter printer)voidCsmTextBlock. prettyPrint(Node node, SourcePrinter printer)voidCsmToken. prettyPrint(Node node, SourcePrinter printer)voidCsmUnindent. prettyPrint(Node node, SourcePrinter printer) -
Uses of Node in com.github.javaparser.printer.lexicalpreservation
Fields in com.github.javaparser.printer.lexicalpreservation declared as Node Modifier and Type Field Description private NodeChildTextElement. childprivate NodeLexicalDifferenceCalculator.CsmChild. childprivate NodeDifference. nodeFields in com.github.javaparser.printer.lexicalpreservation with type parameters of type Node Modifier and Type Field Description private static java.util.Map<Node,java.lang.Boolean>PhantomNodeLogic. isPhantomNodeCacheMethods in com.github.javaparser.printer.lexicalpreservation with type parameters of type Node Modifier and Type Method Description static <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 Node Modifier and Type Method Description private static NodeLexicalPreservingPrinter. findNodeForToken(Node node, Range tokenRange)(package private) NodeChildTextElement. getChild()NodeLexicalDifferenceCalculator.CsmChild. getChild()NodeRemoved. getChild()Methods in com.github.javaparser.printer.lexicalpreservation that return types with arguments of type Node Modifier and Type Method Description private static java.util.Map<Node,java.lang.Integer>DifferenceElementCalculator. findChildrenPositions(LexicalDifferenceCalculator.CalculatedSyntaxModel calculatedSyntaxModel)Find the positions of all the given children.Methods in com.github.javaparser.printer.lexicalpreservation with parameters of type Node Modifier and Type Method Description (package private) voidNodeText. addChild(int index, Node child)(package private) voidNodeText. addChild(Node child)(package private) static TextElementMatcherTextElementMatchers. byNode(Node node)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListAddition(Node container, ObservableProperty observableProperty, int index, Node nodeAdded)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListAddition(CsmElement csm, ObservableProperty observableProperty, NodeList nodeList, int index, Node nodeAdded)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListRemoval(Node container, ObservableProperty observableProperty, int index)private LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterListReplacement(CsmElement csm, ObservableProperty observableProperty, NodeList nodeList, int index, Node newValue)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterPropertyChange(Node node, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelAfterPropertyChange(CsmElement csm, Node node, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelForNode(Node node)(package private) LexicalDifferenceCalculator.CalculatedSyntaxModelLexicalDifferenceCalculator. calculatedSyntaxModelForNode(CsmElement csm, Node node)private voidLexicalDifferenceCalculator. calculatedSyntaxModelForNode(CsmElement csm, Node node, java.util.List<CsmElement> elements, Change change)(package private) java.util.List<DifferenceElement>LexicalDifferenceCalculator. calculateListAdditionDifference(ObservableProperty observableProperty, NodeList nodeList, int index, Node nodeAdded)(package private) java.util.List<DifferenceElement>LexicalDifferenceCalculator. calculateListReplacementDifference(ObservableProperty observableProperty, NodeList nodeList, int index, Node newValue)(package private) voidLexicalDifferenceCalculator. calculatePropertyChange(NodeText nodeText, Node observedNode, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)voidLexicalPreservingPrinter.Observer. concreteListChange(NodeList changedList, AstObserver.ListChangeType type, int index, Node nodeAddedOrRemoved)voidLexicalPreservingPrinter.Observer. concreteListReplacement(NodeList changedList, int index, Node oldValue, Node newValue)voidLexicalPreservingPrinter.Observer. concretePropertyChange(Node observedNode, ObservableProperty property, java.lang.Object oldValue, java.lang.Object newValue)(package private) intNodeText. findChild(Node child)(package private) intNodeText. findChild(Node child, int from)(package private) static java.util.List<TokenTextElement>LexicalPreservingPrinter. findIndentation(Node node)private java.util.List<java.lang.Integer>Difference. findIndexOfCorrespondingNodeTextElement(java.util.List<CsmElement> elements, NodeText nodeText, int startIndex, Node node)private static NodeLexicalPreservingPrinter. findNodeForToken(Node node, Range tokenRange)static java.util.Optional<Comment>LexicalPreservingPrinter. getComment(Node node)Returns the comment or an Optional.empty if there is no comment on this method call.(package private) static NodeTextLexicalPreservingPrinter. getOrCreateNodeText(Node node)private static booleanPhantomNodeLogic. inPhantomNode(Node node, int levels)A node contained in a phantom node is also a phantom node.private static NodeTextLexicalPreservingPrinter. interpret(Node node, CsmElement csm, NodeText nodeText)TODO: Process CsmIndent and CsmUnindent before reaching this pointprivate booleanDifference. isAlmostCorrespondingElement(TextElement textElement, CsmElement csmElement, Node node)private booleanDifference. isCorrespondingElement(TextElement textElement, CsmElement csmElement, Node node)(package private) booleanChildTextElement. isNode(Node node)(package private) abstract booleanTextElement. isNode(Node node)(package private) booleanTokenTextElement. isNode(Node node)(package private) static booleanPhantomNodeLogic. isPhantomNode(Node node)voidLexicalDifferenceCalculator.CsmChild. prettyPrint(Node node, SourcePrinter printer)private static voidLexicalPreservingPrinter. prettyPrintingTextNode(Node node, NodeText nodeText)static java.lang.StringLexicalPreservingPrinter. print(Node node)Print a Node into a String, preserving the lexical information.static voidLexicalPreservingPrinter. print(Node node, java.io.Writer writer)Print a Node into a Writer, preserving the lexical information.private static voidLexicalPreservingPrinter. storeInitialText(Node root)private static voidLexicalPreservingPrinter. storeInitialTextForOneNode(Node node, java.util.List<JavaToken> nodeTokens)private static java.util.Iterator<TokenTextElement>LexicalPreservingPrinter. tokensPreceeding(Node node)(package private) intNodeText. tryToFindChild(Node child)(package private) intNodeText. tryToFindChild(Node child, int from)Method parameters in com.github.javaparser.printer.lexicalpreservation with type arguments of type Node Modifier and Type Method Description booleanChildTextElement. isChildOfClass(java.lang.Class<? extends Node> nodeClass)abstract booleanTextElement. isChildOfClass(java.lang.Class<? extends Node> nodeClass)Is this TextElement representing a child of the given class?booleanTokenTextElement. isChildOfClass(java.lang.Class<? extends Node> nodeClass)Constructors in com.github.javaparser.printer.lexicalpreservation with parameters of type Node Constructor Description ChildTextElement(Node child)CsmChild(Node child)Difference(java.util.List<DifferenceElement> diffElements, NodeText nodeText, Node node) -
Uses of Node in com.github.javaparser.printer.lexicalpreservation.changes
Fields in com.github.javaparser.printer.lexicalpreservation.changes declared as Node Modifier and Type Field Description private NodeListReplacementChange. newValueprivate NodeListAdditionChange. nodeAddedMethods in com.github.javaparser.printer.lexicalpreservation.changes with parameters of type Node Modifier and Type Method Description default booleanChange. evaluate(CsmConditional csmConditional, Node node)java.lang.ObjectChange. getValue(ObservableProperty property, Node node)java.lang.ObjectListAdditionChange. getValue(ObservableProperty property, Node node)java.lang.ObjectListRemovalChange. getValue(ObservableProperty property, Node node)java.lang.ObjectListReplacementChange. getValue(ObservableProperty property, Node node)java.lang.ObjectNoChange. getValue(ObservableProperty property, Node node)java.lang.ObjectPropertyChange. getValue(ObservableProperty property, Node node)Constructors in com.github.javaparser.printer.lexicalpreservation.changes with parameters of type Node Constructor Description ListAdditionChange(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 Node Modifier and Type Method Description <T> TSymbolResolver. resolveDeclaration(Node node, java.lang.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 Node Modifier and Type Interface Description interfaceAssociableToAST<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 Node Modifier and Type Class Description classVisitorList<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.classVisitorMap<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.classVisitorSet<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.Fields in com.github.javaparser.utils declared as Node Modifier and Type Field Description private NVisitorList.EqualsHashcodeOverridingFacade. overriddenprivate NVisitorMap.EqualsHashcodeOverridingFacade. overriddenprivate NVisitorSet.EqualsHashcodeOverridingFacade. overriddenMethods in com.github.javaparser.utils with type parameters of type Node Modifier and Type Method Description static <T extends Node>
voidPositionUtils. sortByBeginPosition(NodeList<T> nodes)static <T extends Node>
voidPositionUtils. sortByBeginPosition(java.util.List<T> nodes)static <T extends Node>
voidPositionUtils. sortByBeginPosition(java.util.List<T> nodes, boolean ignoringAnnotations)Methods in com.github.javaparser.utils that return Node Modifier and Type Method Description private static NodePositionUtils. beginNodeWithoutConsideringAnnotations(Node node)Methods in com.github.javaparser.utils with parameters of type Node Modifier and Type Method Description static booleanPositionUtils. areInOrder(Node a, Node b)static booleanPositionUtils. areInOrder(Node a, Node b, boolean ignoringAnnotations)private static intPositionUtils. beginColumnWithoutConsideringAnnotation(Node node)private static intPositionUtils. beginLineWithoutConsideringAnnotation(Node node)private static NodePositionUtils. beginNodeWithoutConsideringAnnotations(Node node)private static intPositionUtils. compare(Node a, Node b, boolean ignoringAnnotations)static AnnotationExprPositionUtils. getLastAnnotation(Node node)static booleanPositionUtils. nodeContains(Node container, Node contained, boolean ignoringAnnotations) -
Uses of Node in com.github.javaparser.version
Method parameters in com.github.javaparser.version with type arguments of type Node Modifier and Type Method Description voidPostProcessors. process(ParseResult<? extends Node> result, ParserConfiguration configuration)
-