Package modulecheck.parsing.java

Types

Link copied to clipboard
internal class JavaEverythingPrinter
Link copied to clipboard
class JavaParserNodeResolver(val project: McProject, val sourceSetName: SourceSetName)
Link copied to clipboard
internal data class ParsedFile(    val packageFqName: String,     val imports: List<ImportDeclaration>,     val classOrInterfaceTypes: Set<FqName>,     val typeDeclarations: List<TypeDeclaration<*>>,     val fieldDeclarations: Set<DeclaredName>,     val enumDeclarations: Set<DeclaredName>)
Link copied to clipboard
class RealJavaFile(    val file: File,     val javaVersion: JavaVersion,     val nameParser: NameParser) : JavaFile

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.childrenRecursive(): Sequence<Node>
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
inline fun <T : Node> Node.getChildrenOfTypeRecursive(): Sequence<T>
Link copied to clipboard
internal fun <T> Optional<T>.getOrNull(): 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
internal fun Node.getTypeParameterNamesInScope(): Sequence<String>
Link copied to clipboard
internal fun String.javaLangFqNameOrNull(): Reference.ExplicitJavaReference?
Link copied to clipboard
internal fun Node.printEverything()
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 JavaVersion.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)

Properties

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