Package-level declarations

Types

Link copied to clipboard
class JavaParserNodeResolver(val project: McProject, val sourceSetName: SourceSetName)
Link copied to clipboard
internal class JavaTreePrinter(whitespaceChar: Char = ' ') : AbstractTreePrinter<Node>
Link copied to clipboard
internal data class ParsedFile(val packageName: PackageName, val imports: List<ImportDeclaration>, val classOrInterfaceTypes: Set<FqName>, val typeDeclarations: List<TypeDeclaration<*>>, val fieldDeclarations: Set<QualifiedDeclaredName>, val enumDeclarations: Set<QualifiedDeclaredName>)
Link copied to clipboard
class RealJavaFile(val file: File, val psi: PsiJavaFile, val jvmTarget: JvmTarget, val nameParser: NameParser) : JavaFile

Properties

Link copied to clipboard
internal val javaStdLibNames: Set<String>

Functions

Link copied to clipboard
fun FieldDeclaration.apiReferences(): List<String>
fun MethodDeclaration.apiReferences(): List<String>
Link copied to clipboard
fun <T : NodeWithStaticModifier<T>, NodeWithPrivateModifier<T>> T.canBeImported(): Boolean
Link copied to clipboard
fun <T : NodeWithStaticModifier<T>, NodeWithPrivateModifier<T>> T.canBeResolved(): Boolean
Link copied to clipboard
fun Node.childrenBreadthFirst(): Sequence<Node>
inline fun Node.childrenBreadthFirst(crossinline predicate: (Node) -> Boolean): Sequence<Node>
Link copied to clipboard
internal fun Node.childrenDepthFirst(): Sequence<Node>
inline fun Node.childrenDepthFirst(crossinline predicate: (Node) -> Boolean): Sequence<Node>
Link copied to clipboard
inline fun <T : Node> Node.childrenOfTypeBreadthFirst(): Sequence<T>
Link copied to clipboard
inline fun <T : Node> Node.childrenOfTypeDepthFirst(): Sequence<T>
Link copied to clipboard
internal fun ClassOrInterfaceType.fqNameOrNull(): FqName?
fun <T : Node, Resolvable<R>, R : ResolvedDeclaration> T.fqNameOrNull(typeDeclarations: List<TypeDeclaration<*>>): String?
Link copied to clipboard
inline fun <T : Node> Node.getChildOfType(): T?
Link copied to clipboard
inline fun <T : Node> Node.getChildrenOfType(): List<T>
Link copied to clipboard
internal inline fun <T : Node> Node.getParentOfType(): T?
Link copied to clipboard
internal inline fun <T : Node> Node.getParentsOfTypeRecursive(): Sequence<T>
Link copied to clipboard
internal fun Node.getParentsRecursive(): Sequence<Node>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <T : Node> Node.requireChildOfType(): T
Link copied to clipboard
fun <T : Node> T.simpleName(): String
Link copied to clipboard
internal fun JvmTarget.toLanguageLevel(): ParserConfiguration.LanguageLevel
Link copied to clipboard
fun ClassOrInterfaceType.typeReferencesRecursive(): Sequence<ClassOrInterfaceType>

Includes all types referenced by the receiver ClassOrInterfaceType, optionally including itself.

Link copied to clipboard
internal inline fun Node.visit(crossinline predicate: (node: Node) -> Boolean): Sequence<Node>