JavaLanguageFrontend

Main parser for ONE Java file.

Constructors

Link copied to clipboard
constructor(language: Language<JavaLanguageFrontend>, ctx: TranslationContext)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var context: CompilationUnit?
Link copied to clipboard
override var ctx: TranslationContext
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var javaSymbolResolver: JavaSymbolSolver?
Link copied to clipboard
open override val language: Language<out LanguageFrontend<Node, Type>>
Link copied to clipboard
open override val namespace: Name?
Link copied to clipboard
val nativeTypeResolver: CombinedTypeSolver
Link copied to clipboard
open override val scope: Scope?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open override fun cleanup()
Link copied to clipboard
Link copied to clipboard
open override fun codeOf(astNode: Node): String?
Link copied to clipboard
fun getQualifiedMethodNameAsGoodAsPossible(callExpr: MethodCallExpr): String
Link copied to clipboard
Link copied to clipboard
fun <N : Node, T : Type> getReturnTypeAsGoodAsPossible(nodeWithType: NodeWithType<N, T>, resolved: ResolvedMethodDeclaration): Type
Link copied to clipboard
fun getTypeAsGoodAsPossible(type: Type): Type
fun <N : Node, T : Type> getTypeAsGoodAsPossible(nodeWithType: NodeWithType<N, T>, resolved: ResolvedValueDeclaration): Type
Link copied to clipboard
open override fun locationOf(astNode: Node): PhysicalLocation?
Link copied to clipboard
open override fun parse(file: File): TranslationUnitDeclaration
fun parse(file: File?, parser: JavaParser): CompilationUnit
Link copied to clipboard
Link copied to clipboard
open fun process(from: Any, to: Node)
Link copied to clipboard
fun processAnnotations(node: Node, owner: NodeWithAnnotations<*>)

Processes Java annotations.

Link copied to clipboard
open fun registerObjectListener(from: Any, biConsumer: BiConsumer<Any, Node>)
Link copied to clipboard
open fun registerPredicateListener(predicate: BiPredicate<Any, Node>, biConsumer: BiConsumer<Any, Node>)
Link copied to clipboard
open override fun setComment(node: Node, astNode: Node)
Link copied to clipboard
open override fun typeOf(type: Type): Type
fun typeOf(type: ResolvedType): Type