ContextOps
extends Object with SerializableSupertypes
Object, SerializableMembers
compilationUnitClassname
( self: Context ) ( ) : StringClass name of the current CompilationUnit
Class name of the current CompilationUnit
isJavaCompilationUnit
( self: Context ) ( ) : BooleanReturns true if we've tried to reflect on a Java class.
Returns true if we've tried to reflect on a Java class.
isScala2CompilationUnit
( self: Context ) ( ) : BooleanReturns true if we've tried to reflect on a Scala2 (non-Tasty) class.
Returns true if we've tried to reflect on a Scala2 (non-Tasty) class.
owner
( self: Context ) : SymbolReturns the owner of the context
Returns the owner of the context
requiredClass
( self: Context ) ( path: String ) : SymbolGet class symbol if class is either defined in current compilation run or present on classpath.
Get class symbol if class is either defined in current compilation run or present on classpath.
requiredMethod
( self: Context ) ( path: String ) : SymbolGet method symbol if method is either defined in current compilation run or present on classpath. Throws if the method has an overload.
Get method symbol if method is either defined in current compilation run or present on classpath. Throws if the method has an overload.
requiredModule
( self: Context ) ( path: String ) : SymbolGet module symbol if module is either defined in current compilation run or present on classpath.
Get module symbol if module is either defined in current compilation run or present on classpath.
requiredPackage
( self: Context ) ( path: String ) : SymbolGet package symbol if package is either defined in current compilation run or present on classpath.
Get package symbol if package is either defined in current compilation run or present on classpath.
source
( self: Context ) : PathReturns the source file being compiled. The path is relative to the current working directory.
Returns the source file being compiled. The path is relative to the current working directory.