O object

ContextOps

extends Object with Serializable

Supertypes

Object, Serializable

Members

def 

compilationUnitClassname

( self: Context ) ( ) : String

Class name of the current CompilationUnit

Class name of the current CompilationUnit

def 

isJavaCompilationUnit

( self: Context ) ( ) : Boolean

Returns true if we've tried to reflect on a Java class.

Returns true if we've tried to reflect on a Java class.

def 

isScala2CompilationUnit

( self: Context ) ( ) : Boolean

Returns 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.

def 

owner

( self: Context ) : Symbol

Returns the owner of the context

Returns the owner of the context

def 

requiredClass

( self: Context ) ( path: String ) : Symbol

Get 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.

def 

requiredMethod

( self: Context ) ( path: String ) : Symbol

Get 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.

def 

requiredModule

( self: Context ) ( path: String ) : Symbol

Get 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.

def 

requiredPackage

( self: Context ) ( path: String ) : Symbol

Get 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.

def 

source

( self: Context ) : Path

Returns 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.