Uses of Interface
net.sourceforge.pmd.lang.java.ast.TypeNode
Packages that use TypeNode
Package
Description
Contains the classes and interfaces modelling the Java AST.
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.astModifier and TypeInterfaceDescriptioninterfaceAn expression that may be assigned by an assignment expression, or incremented or decremented.static interfaceAn assignable expression that has a name, and refers to a symbol.interfaceRepresents an expression, in the most general sense.interfaceA lexical literal.interfaceA pattern for pattern matching constructs likeInstanceOfExpressionor within aASTSwitchLabel).interfaceTags thoseexpressionsthat are categorised as primary by the JLS.interfaceRepresents a reference type, i.e. a class or interface type, or an array type.interfaceRepresents a type reference.interfaceGroups class, enum, record, annotation and interface declarations under a common supertype.interfaceA method reference or lambda expression.interfaceGroups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.interfaceNode 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 TypeNodeModifier and TypeClassDescriptionfinal classAn ambiguous name occurring in any context.final classRepresents an annotation.final classThe declaration of an annotation type.final classAn anonymous class declaration.final classAn array access expression.final classAn array creation expression.final classAn array initializer.final classRepresents an array type.final classRepresents an assignment expression.final classThe boolean literal, either "true" or "false".final classRepresents a type cast expression.final classRepresents a character literal.final classRepresents class and interface declarations.final classA class literal.final classRepresents a class or interface type, possibly parameterised with type arguments.final classRepresents a conditional expression, aka ternary expression.final classA class instance creation expression.final classRepresents an enum constant declaration within an enum type declaration.final classRepresents an enum declaration.final classAn explicit constructor invocation, occurring at the start of a constructor declaration.final classA field access expression.final classFormal parameter node for a formal parameter list.final classImplicitClassDeclaration ::= ClassBody ClassBody ::= FieldDeclaration* MethodDeclaration BodyDeclaration*final classRepresents a binary infix expression.final classRepresents an intersection type.final classA lambda expression.final classFormal parameter of a lambda expression.final classA method invocation expression.final classMethod or constructor reference expression.final classThe null literal.final classA numeric literal of any type (double, int, long, float, etc).final classWraps aASTPatternnode but presents the interface ofASTExpression.final classRepresents a primitive type.final classDefines a single component of a RecordDeclaration (JDK 16 feature).final classA record declaration is a special data class type (JDK 16 feature).final classA record pattern, a Java 21 language feature.final classRepresents a string literal.final classThe "super" keyword.final classA switch expression, as introduced in Java 12.final classThe "this" expression.final classWraps a type node but presents the interface ofASTExpression.final classRepresents a type parameter declaration of a method, constructor, class or interface declaration.final classA type pattern (JDK16).final classRepresents a unary operation on a value.final classRepresents the type node of a multi-catch statement.final classAn unnamed pattern, a Java 22 language feature.final classAn unqualified reference to a variable (either local, or a field that is in scope).final classRepresents an identifier in the context of variable or parameter declarations (not their use in expressions).final classType node to represent the void pseudo-type.final classRepresents a wildcard type.Methods in net.sourceforge.pmd.lang.java.ast that return TypeNodeModifier and TypeMethodDescriptionASTMethodReference.getLhs()Returns the LHS, whether it is a type or an expression.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type TypeNodeModifier and TypeMethodDescriptionstatic @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 TypeNodeModifier and TypeMethodDescriptionstatic booleanChecks whether the static type of the node is a subtype of the class identified by the given name.static booleanChecks 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.