Package org.jruby.compiler
Interface Compilable<T>
- All Known Implementing Classes:
CompiledIRMethod,DefineMethodMethod,InterpretedIRBlockBody,InterpretedIRBodyMethod,InterpretedIRMetaClassBody,InterpretedIRMethod,MixedModeIRBlockBody,MixedModeIRMethod
public interface Compilable<T>
Blocks and methods both share same full build mechanism so they implement this to be buildable.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcompleteBuild(T buildResult) default StringgetClassName(ThreadContext context) Deprecated.getFile()intgetLine()getName()default StringReturn the owning module/class name.static StringresolveFullName(RubyModule implementationClass) Resolve the fully qualified name.voidsetCallCount(int count)
-
Method Details
-
setCallCount
void setCallCount(int count) -
completeBuild
-
getIRScope
IRScope getIRScope() -
ensureInstrsReady
InterpreterContext ensureInstrsReady() -
getOwnerName
Return the owning module/class name.- Returns:
- method/block owner's name
-
getName
String getName()- Returns:
- method/closure identifier
-
getFile
String getFile()- Returns:
- method/block source file
-
getLine
int getLine()- Returns:
- method/block source file line
-
getImplementationClass
RubyModule getImplementationClass() -
getClassName
Deprecated. -
resolveFullName
Resolve the fully qualified name.- Parameters:
implementationClass-- Returns:
- class/module name e.g. Foo::Bar::Baz
-