Uses of Interface
net.sourceforge.pmd.lang.java.ast.TypeNode
-
Packages that use TypeNode Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.types Support for compile-time type resolution on the AST. -
-
Uses of TypeNode in net.sourceforge.pmd.lang.java.ast
Subinterfaces of TypeNode in net.sourceforge.pmd.lang.java.ast Modifier and Type Interface Description interfaceASTAssignableExprAn expression that may be assigned by an assignment expression, or incremented or decremented.static interfaceASTAssignableExpr.ASTNamedReferenceExprAn assignable expression that has a name, and refers to a symbol.interfaceASTExpressionRepresents an expression, in the most general sense.interfaceASTLiteralA lexical literal.interfaceASTPatternA pattern for pattern matching constructs likeInstanceOfExpressionor within aASTSwitchLabel).interfaceASTPrimaryExpressionTags thoseexpressionsthat are categorised as primary by the JLS.interfaceASTReferenceTypeRepresents a reference type, i.e. a class or interface type, or an array type.interfaceASTTypeRepresents a type reference.interfaceASTTypeDeclarationGroups class, enum, record, annotation and interface declarations under a common supertype.interfaceFunctionalExpressionA method reference or lambda expression.interfaceInvocationNodeGroups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.interfaceQualifiableExpressionNode that may be qualified by an expression, e.g. an instance method call or inner class constructor invocation.Classes in net.sourceforge.pmd.lang.java.ast that implement TypeNode Modifier and Type Class Description classASTAmbiguousNameAn ambiguous name occurring in any context.classASTAnnotationRepresents an annotation.classASTAnnotationTypeDeclarationThe declaration of an annotation type.classASTAnonymousClassDeclarationAn anonymous class declaration.classASTArrayAccessAn array access expression.classASTArrayAllocationAn array creation expression.classASTArrayInitializerAn array initializer.classASTArrayTypeRepresents an array type.classASTAssignmentExpressionRepresents an assignment expression.classASTBooleanLiteralThe boolean literal, either "true" or "false".classASTCastExpressionRepresents a type cast expression.classASTCharLiteralRepresents a character literal.classASTClassDeclarationRepresents class and interface declarations.classASTClassLiteralA class literal.classASTClassTypeRepresents a class or interface type, possibly parameterised with type arguments.classASTConditionalExpressionRepresents a conditional expression, aka ternary expression.classASTConstructorCallA class instance creation expression.classASTEnumConstantRepresents an enum constant declaration within an enum type declaration.classASTEnumDeclarationRepresents an enum declaration.classASTExplicitConstructorInvocationAn explicit constructor invocation, occurring at the start of a constructor declaration.classASTFieldAccessA field access expression.classASTFormalParameterFormal parameter node for a formal parameter list.classASTImplicitClassDeclarationA class declaration added by the compiler implicitly in a compact compilation unit (see JEP 512, Java 25).classASTInfixExpressionRepresents a binary infix expression.classASTIntersectionTypeRepresents an intersection type.classASTLambdaExpressionA lambda expression.classASTLambdaParameterFormal parameter of a lambda expression.classASTMethodCallA method invocation expression.classASTMethodReferenceMethod or constructor reference expression.classASTNullLiteralThe null literal.classASTNumericLiteralA numeric literal of any type (double, int, long, float, etc).classASTPatternExpressionWraps aASTPatternnode but presents the interface ofASTExpression.classASTPrimitiveTypeRepresents a primitive type.classASTRecordComponentDefines a single component of a RecordDeclaration (JDK 16 feature).classASTRecordDeclarationA record declaration is a special data class type (JDK 16 feature).classASTRecordPatternA record pattern, a Java 21 language feature.classASTStringLiteralRepresents a string literal.classASTSuperExpressionThe "super" keyword.classASTSwitchExpressionA switch expression, as introduced in Java 12.classASTThisExpressionThe "this" expression.classASTTypeExpressionWraps a type node but presents the interface ofASTExpression.classASTTypeParameterRepresents a type parameter declaration of a method, constructor, class or interface declaration.classASTTypePatternA type pattern (JDK16).classASTUnaryExpressionRepresents a unary operation on a value.classASTUnionTypeRepresents the type node of a multi-catch statement.classASTUnnamedPatternAn unnamed pattern, a Java 22 language feature.classASTVariableAccessAn unqualified reference to a variable (either local, or a field that is in scope).classASTVariableIdRepresents an identifier in the context of variable or parameter declarations (not their use in expressions).classASTVoidTypeType node to represent the void pseudo-type.classASTWildcardTypeRepresents a wildcard type.Methods in net.sourceforge.pmd.lang.java.ast that return TypeNode Modifier and Type Method Description TypeNodeASTMethodReference. getLhs()Returns the LHS, whether it is a type or an expression.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type TypeNode Modifier and Type Method Description static @NonNull ExprContextInternalApiBridge. getTopLevelExprContext(TypeNode n)static @Nullable JTypeMirrorInternalApiBridge. getTypeMirrorInternal(TypeNode node)static voidInternalApiBridge. setTypeMirrorInternal(TypeNode node, JTypeMirror inferred) -
Uses of TypeNode in net.sourceforge.pmd.lang.java.types
Methods in net.sourceforge.pmd.lang.java.types with parameters of type TypeNode Modifier and Type Method Description static booleanTypeTestUtil. isA(@NonNull Class<?> clazz, @Nullable TypeNode node)Checks whether the static type of the node is a subtype of the class identified by the given name.static booleanTypeTestUtil. isA(@NonNull String canonicalName, @Nullable TypeNode node)Checks whether the static type of the node is a subtype of the class identified by the given name.static booleanTypeTestUtil. isA(@NonNull JTypeMirror t1, @Nullable TypeNode t2)static booleanTypeTestUtil. isExactlyA(@NonNull Class<?> clazz, @Nullable TypeNode node)Checks whether the static type of the node is exactly the type of the class.static booleanTypeTestUtil. isExactlyA(@NonNull String canonicalName, @Nullable TypeNode node)Checks whether the static type of the node is exactly the type given by the name.
-