Class: Mirah::Util::CompilationState
- Inherits:
-
Object
- Object
- Mirah::Util::CompilationState
- Defined in:
- lib/mirah/util/compilation_state.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#command ⇒ Object
Returns the value of attribute command.
-
#compiler_class ⇒ Object
Returns the value of attribute compiler_class.
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#help_printed ⇒ Object
Returns the value of attribute help_printed.
-
#running ⇒ Object
(also: #running?)
Returns the value of attribute running.
-
#save_extensions ⇒ Object
Returns the value of attribute save_extensions.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
-
#version_printed ⇒ Object
Returns the value of attribute version_printed.
Instance Method Summary collapse
-
#initialize ⇒ CompilationState
constructor
A new instance of CompilationState.
- #set_jvm_version(ver_str) ⇒ Object
Constructor Details
#initialize ⇒ CompilationState
Returns a new instance of CompilationState.
21 22 23 |
# File 'lib/mirah/util/compilation_state.rb', line 21 def initialize @save_extensions = true end |
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
32 33 34 |
# File 'lib/mirah/util/compilation_state.rb', line 32 def args @args end |
#command ⇒ Object
Returns the value of attribute command.
33 34 35 |
# File 'lib/mirah/util/compilation_state.rb', line 33 def command @command end |
#compiler_class ⇒ Object
Returns the value of attribute compiler_class.
31 32 33 |
# File 'lib/mirah/util/compilation_state.rb', line 31 def compiler_class @compiler_class end |
#destination ⇒ Object
Returns the value of attribute destination.
25 26 27 |
# File 'lib/mirah/util/compilation_state.rb', line 25 def destination @destination end |
#help_printed ⇒ Object
Returns the value of attribute help_printed.
27 28 29 |
# File 'lib/mirah/util/compilation_state.rb', line 27 def help_printed @help_printed end |
#running ⇒ Object Also known as: running?
Returns the value of attribute running.
29 30 31 |
# File 'lib/mirah/util/compilation_state.rb', line 29 def running @running end |
#save_extensions ⇒ Object
Returns the value of attribute save_extensions.
28 29 30 |
# File 'lib/mirah/util/compilation_state.rb', line 28 def save_extensions @save_extensions end |
#verbose ⇒ Object
Returns the value of attribute verbose.
25 26 27 |
# File 'lib/mirah/util/compilation_state.rb', line 25 def verbose @verbose end |
#version_printed ⇒ Object
Returns the value of attribute version_printed.
26 27 28 |
# File 'lib/mirah/util/compilation_state.rb', line 26 def version_printed @version_printed end |
Instance Method Details
#set_jvm_version(ver_str) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/mirah/util/compilation_state.rb', line 35 def set_jvm_version(ver_str) case ver_str when '1.4' BiteScript.bytecode_version = BiteScript::JAVA1_4 when '1.5' BiteScript.bytecode_version = BiteScript::JAVA1_5 when '1.6' BiteScript.bytecode_version = BiteScript::JAVA1_6 when '1.7' BiteScript.bytecode_version = BiteScript::JAVA1_7 else $stderr.puts "invalid bytecode version specified: #{ver_str}" end end |