Uses of Interface
com.github.javaparser.HasParentNode
-
-
Uses of HasParentNode in com.github.javaparser.ast
Classes in com.github.javaparser.ast that implement HasParentNode 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.classNodeBase class for all nodes of the abstract syntax tree.classNodeList<N extends Node>A list of nodes.classPackageDeclarationA package declaration. -
Uses of HasParentNode in com.github.javaparser.ast.body
Classes in com.github.javaparser.ast.body that implement HasParentNode 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. -
Uses of HasParentNode in com.github.javaparser.ast.comments
Classes in com.github.javaparser.ast.comments that implement HasParentNode 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. -
Uses of HasParentNode in com.github.javaparser.ast.expr
Classes in com.github.javaparser.ast.expr that implement HasParentNode 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 expressionclassThisExprAn 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. -
Uses of HasParentNode in com.github.javaparser.ast.modules
Classes in com.github.javaparser.ast.modules that implement HasParentNode 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. -
Uses of HasParentNode in com.github.javaparser.ast.stmt
Classes in com.github.javaparser.ast.stmt that implement HasParentNode 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. -
Uses of HasParentNode in com.github.javaparser.ast.type
Classes in com.github.javaparser.ast.type that implement HasParentNode 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.
-