Uses of Interface
com.github.javaparser.HasParentNode
Packages that use HasParentNode
Package
Description
-
Uses of HasParentNode in com.github.javaparser.ast
Classes in com.github.javaparser.ast that implement HasParentNodeModifier and TypeClassDescriptionclassInnew int[1][2];there are two ArrayCreationLevel objects, the first one contains the expression "1", the second the expression "2".classThis class represents the entire compilation unit.classAn import declaration.classA modifier, like private, public, or volatile.classBase class for all nodes of the abstract syntax tree.classA list of nodes.classA package declaration. -
Uses of HasParentNode in com.github.javaparser.ast.body
Classes in com.github.javaparser.ast.body that implement HasParentNodeModifier and TypeClassDescriptionclassAn annotation type declaration.@interface X { ... }classThe "int id();" in@interface X { int id(); }classBodyDeclaration<T extends BodyDeclaration<?>>Any declaration that can appear between the { and } of a class, interface, enum, or record.classCallableDeclaration<T extends CallableDeclaration<?>>Represents a declaration which is callable eg.classA definition of a class or interface.class X { ... }interface X { ... }classThe record declaration's constructorclassA constructor declaration:class X { X() { } }where X(){} is the constructor declaration.classOne of the values an enum can take.classThe declaration of an enum.enum X { ... }classThe declaration of a field in a class.classA (possibly static) initializer body.classA method declaration.classThe parameters to a method or lambda.classThe receiver parameter feature of Java.classThe record declarationclassTypeDeclaration<T extends TypeDeclaration<?>>A base class for all types of type declarations.classThe declaration of a variable.
Inint x = 14, y = 3;"int x = 14" and "int y = 3" are VariableDeclarators. -
Uses of HasParentNode in com.github.javaparser.ast.comments
Classes in com.github.javaparser.ast.comments that implement HasParentNodeModifier and TypeClassDescriptionclassAST node that represent block comments.classAbstract class for all AST nodes that represent comments.classA Javadoc comment.classAST node that represent line comments. -
Uses of HasParentNode in com.github.javaparser.ast.expr
Classes in com.github.javaparser.ast.expr that implement HasParentNodeModifier and TypeClassDescriptionclassA base class for the different types of annotations.classArray brackets [] being used to get a value from an array.classnew int[5][4][][]ornew int[][]{{1},{2,3}}.classThe initialization of an array.classAn assignment expression.classAn expression with an expression on the left, an expression on the right, and an operator in the middle.classThe boolean literals.classA typecast.classA literal character.classDefines an expression that accesses the class of a type.classThe ternary conditional expression.classA float or a double constant.classAn expression between ( ).classA base class for all expressions.classAccess of a field of an object or a class.classThe instanceof statementclassAll ways to specify an int literal.classA lambda expressionclassA base class for all literal expressions.classAny literal value that is stored internally as a String.classAll ways to specify a long literal.classAn annotation that uses only the annotation type name.classA value for a member of an annotation.classA method call on an object or a class.classMethod reference expressions introduced in Java 8 specifically designed to simplify lambda Expressions.classA name that may consist of multiple identifiers.classWhenever a SimpleName is used in an expression, it is wrapped in NameExpr.classAn annotation that has zero or more key-value pairs.@Mapping(a=5, d=10)classA literal "null".classA constructor call.classThe instanceof statementclassA name that consists of a single identifier.classAn annotation that has a single value.classA literal string.classAn occurrence of the "super" keyword.classThe switch expressionclassA text blockclassAn occurrence of the "this" keyword.classThis class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.classAn expression where an operator is applied to a single expression.classA declaration of variables. -
Uses of HasParentNode in com.github.javaparser.ast.modules
Classes in com.github.javaparser.ast.modules that implement HasParentNodeModifier and TypeClassDescriptionclassA Java 9 Jigsaw module declaration.classA module directive.classAn exports directive in module-info.java.classAn opens directive in module-info.java.classA provides directive in module-info.java.classA require directive in module-info.java.classA uses directive in module-info.java. -
Uses of HasParentNode in com.github.javaparser.ast.stmt
Classes in com.github.javaparser.ast.stmt that implement HasParentNodeModifier and TypeClassDescriptionclassA usage of the keyword "assert"
Inassert dead : "Wasn't expecting to be dead here";the check is "dead" and the message is the string.classStatements in between { and }.classThe break statementclassThe catch part of a try-catch-finally.classA continue statement with an optional label;continue brains;continue;classA do-while.classAn empty statement is a ";" where a statement is expected.classA call to super or this in a constructor or initializer.classUsed to wrap an expression so that it can take the place of a statement.classA for-each statement.classThe classic for statementclassAn if-then-else statement.classA statement that is labeled, likelabel123: println("continuing");classA class declaration inside a method.classA record declaration inside a method.classThe return statement, with an optional expression to return.classA base class for all statements.classOne case in a switch statementclassThe switch statementclassUsage of the synchronized keyword.classUsage of the throw statement.classThe try statementclassA statement that had parse errors.classA while statement.classThe yield statement -
Uses of HasParentNode in com.github.javaparser.ast.type
Classes in com.github.javaparser.ast.type that implement HasParentNodeModifier and TypeClassDescriptionclassTo indicate that a type is an array, it gets wrapped in an ArrayType for every array level it has.classA class or an interface type.classRepresents a set of types.classA primitive type.classBase class for reference types.classBase class for types.classA type parameter.classThe union typeclassAn unknown parameter type object.classA type called "var" waiting for Java to infer it.classThe return type of aMethodDeclarationwhen it returns void.classA wildcard type argument.