CodeQL library for Java/Kotlin
codeql/java-all 4.1.1 (changelog, source)
Search

Class GenericTypeNode

A node representing the type parameters of a Class or Interface. Only rendered when the type in question is indeed generic.

Import path

import semmle.code.java.PrintAst

Direct supertypes

Indirect supertypes

Fields

Predicates

getChild

Gets the child node at index childIndex. Child indices must be unique, but need not be contiguous.

getLocation

Gets the location of this node in the source code.

getType

Gets the underlying GenericType.

toString

Gets a textual representation of this node in the PrintAst output tree.

Inherited predicates

getAChild

Gets a child of this node.

from PrintAstNode
getChildEdgeLabel

Gets the label for the edge from this node to the specified child. By default, this is just the index of the child, but subclasses can override this.

from PrintAstNode
getParent

Gets the parent of this node, if any.

from PrintAstNode
getProperty

Gets the value of the property of this node, where the name of the property is key.

from PrintAstNode
hasLocationInfo

Holds if this node is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from PrintAstNode

Charpred