org.jruby.compiler.ir
Class IRScript

java.lang.Object
  extended by org.jruby.compiler.ir.IRScopeImpl
      extended by org.jruby.compiler.ir.IRScript
All Implemented Interfaces:
IRScope

public class IRScript
extends IRScopeImpl


Constructor Summary
IRScript(java.lang.String className, java.lang.String sourceName, StaticScope staticScope)
           
 
Method Summary
 Operand getFileName()
           
 LocalVariable getLocalVariable(java.lang.String name)
          Get Local Variable from this scope
 IRClass getRootClass()
           
 IRMethod getRootMethod()
           
 java.lang.String getScopeName()
           
 void runCompilerPass(CompilerPass p)
          Run the passed in compiler pass on this scope!
 java.lang.String toString()
           
 
Methods inherited from class org.jruby.compiler.ir.IRScopeImpl
addInstr, getContainer, getContainerModule, getInstrs, getLexicalParent, getName, getNearestModule, getNewInlineVariable, getNewLabel, getNewLabel, getNewTemporaryClosureVariable, getNewTemporaryVariable, getNextClosureId, getPrefixCountSize, getRenamedVariableSize, getStaticScope, getTemporaryVariableSize, prepareForInterpretation, recordMethodAlias, runCompilerPassOnNestedScopes, setContainer, setName, toStringInstrs, toStringVariables, unaliasMethodName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IRScript

public IRScript(java.lang.String className,
                java.lang.String sourceName,
                StaticScope staticScope)
Method Detail

getFileName

public Operand getFileName()

getScopeName

public java.lang.String getScopeName()
Specified by:
getScopeName in class IRScopeImpl

getRootMethod

public IRMethod getRootMethod()

getRootClass

public IRClass getRootClass()

toString

public java.lang.String toString()
Overrides:
toString in class IRScopeImpl

getLocalVariable

public LocalVariable getLocalVariable(java.lang.String name)
Description copied from interface: IRScope
Get Local Variable from this scope


runCompilerPass

public void runCompilerPass(CompilerPass p)
Description copied from interface: IRScope
Run the passed in compiler pass on this scope!

Specified by:
runCompilerPass in interface IRScope
Overrides:
runCompilerPass in class IRScopeImpl


Copyright © 2002-2009 JRuby Team. All Rights Reserved.