Class ClassOrInterfaceType

All Implemented Interfaces:
NodeWithAnnotations<ClassOrInterfaceType>, NodeWithRange<Node>, NodeWithSimpleName<ClassOrInterfaceType>, NodeWithTokenRange<Node>, NodeWithTypeArguments<ClassOrInterfaceType>, Observable, Visitable, HasParentNode<Node>, Resolvable<ResolvedType>, Cloneable

A class or an interface type.
Object
HashMap<String, String>
java.util.Punchcard

Note that the syntax is ambiguous here, and JavaParser does not know what is to the left of the class. It assumes cases like Map.Entry where Map is the scope of Entry. In java.util.Punchcard, it will not recognize that java and util are parts of the package name. Instead, it will set util as the scope of Punchcard, as a ClassOrInterfaceType (which it is not). In turn, util will have java as its scope, also as a ClassOrInterfaceType

Author:
Julio Vilmar Gesser