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 interface
ASTAssignableExpr
An expression that may be assigned by an assignment expression, or incremented or decremented.static interface
ASTAssignableExpr.ASTNamedReferenceExpr
An assignable expression that has a name, and refers to a symbol.interface
ASTExpression
Represents an expression, in the most general sense.interface
ASTLiteral
A lexical literal.interface
ASTPrimaryExpression
Tags thoseexpressions
that are categorised as primary by the JLS.interface
ASTReferenceType
Represents a reference type, i.e.interface
ASTType
Represents a type reference.interface
ASTTypeDeclaration
Groups class, enum, record, annotation and interface declarations under a common supertype.interface
FunctionalExpression
A method reference or lambda expression.interface
InvocationNode
Groups method and constructor call, together, as well as explicit constructor invocation statements, and enum constant declarations.interface
QualifiableExpression
Node that may be qualified by an expression, e.g.Classes in net.sourceforge.pmd.lang.java.ast that implement TypeNode Modifier and Type Class Description class
ASTAmbiguousName
An ambiguous name occurring in any context.class
ASTAnnotation
Represents an annotation.class
ASTAnnotationTypeDeclaration
The declaration of an annotation type.class
ASTAnonymousClassDeclaration
An anonymous class declaration.class
ASTArrayAccess
An array access expression.class
ASTArrayAllocation
An array creation expression.class
ASTArrayInitializer
An array initializer.class
ASTArrayType
Represents an array type.class
ASTAssignmentExpression
Represents an assignment expression.class
ASTBooleanLiteral
The boolean literal, either "true" or "false".class
ASTCastExpression
Represents a type cast expression.class
ASTCharLiteral
Represents a character literal.class
ASTClassDeclaration
Represents class and interface declarations.class
ASTClassLiteral
A class literal.class
ASTClassType
Represents a class or interface type, possibly parameterised with type arguments.class
ASTConditionalExpression
Represents a conditional expression, aka ternary expression.class
ASTConstructorCall
A class instance creation expression.class
ASTEnumConstant
Represents an enum constant declaration within an enum type declaration.class
ASTEnumDeclaration
Represents an enum declaration.class
ASTExplicitConstructorInvocation
An explicit constructor invocation, occurring at the start of a constructor declaration.class
ASTFieldAccess
A field access expression.class
ASTFormalParameter
Formal parameter node for a formal parameter list.class
ASTInfixExpression
Represents a binary infix expression.class
ASTIntersectionType
Represents an intersection type.class
ASTLambdaExpression
A lambda expression.class
ASTLambdaParameter
Formal parameter of a lambda expression.class
ASTMethodCall
A method invocation expression.class
ASTMethodReference
Method or constructor reference expression.class
ASTNullLiteral
The null literal.class
ASTNumericLiteral
A numeric literal of any type (double, int, long, float, etc).class
ASTPatternExpression
Wraps aASTPattern
node but presents the interface ofASTExpression
.class
ASTPrimitiveType
Represents a primitive type.class
ASTRecordDeclaration
A record declaration is a special data class type (JDK 16 feature).class
ASTStringLiteral
Represents a string literal.class
ASTSuperExpression
The "super" keyword.class
ASTSwitchExpression
A switch expression, as introduced in Java 12.class
ASTTemplateExpression
This is a Java 21/22 Preview feature.class
ASTThisExpression
The "this" expression.class
ASTTypeExpression
Wraps a type node but presents the interface ofASTExpression
.class
ASTTypeParameter
Represents a type parameter declaration of a method, constructor, class or interface declaration.class
ASTUnaryExpression
Represents a unary operation on a value.class
ASTUnionType
Represents the type node of a multi-catch statement.class
ASTVariableAccess
An unqualified reference to a variable (either local, or a field that is in scope).class
ASTVariableId
Represents an identifier in the context of variable or parameter declarations (not their use in expressions).class
ASTVoidType
Type node to represent the void pseudo-type.class
ASTWildcardType
Represents a wildcard type.Methods in net.sourceforge.pmd.lang.java.ast that return TypeNode Modifier and Type Method Description TypeNode
ASTMethodReference. 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 ExprContext
InternalApiBridge. getTopLevelExprContext(TypeNode n)
static @Nullable JTypeMirror
InternalApiBridge. getTypeMirrorInternal(TypeNode node)
static void
InternalApiBridge. 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 boolean
TypeTestUtil. 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 boolean
TypeTestUtil. 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 boolean
TypeTestUtil. isA(@NonNull JTypeMirror t1, @Nullable TypeNode t2)
static boolean
TypeTestUtil. isExactlyA(@NonNull Class<?> clazz, @Nullable TypeNode node)
Checks whether the static type of the node is exactly the type of the class.static boolean
TypeTestUtil. isExactlyA(@NonNull String canonicalName, @Nullable TypeNode node)
Checks whether the static type of the node is exactly the type given by the name.
-