Sha256: 5dc67e6396c9c829f182e2e8e3fbe1f785bcad39e367f5cacbb686a15ae0e8d1
Contents?: true
Size: 1.78 KB
Versions: 2
Compression:
Stored size: 1.78 KB
Contents
# Copyright (c) 2010 The Mirah project authors. All Rights Reserved. # All contributing project authors may be found in the NOTICE file. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. require 'bitescript' module Mirah module Util class CompilationState def initialize @save_extensions = true end attr_accessor :verbose, :destination attr_accessor :version_printed attr_accessor :help_printed attr_accessor :save_extensions attr_accessor :running alias running? running attr_accessor :compiler_class attr_accessor :args attr_accessor :command def classpath=(classpath) Mirah::AST.type_factory.classpath = classpath end def bootclasspath=(classpath) Mirah::AST.type_factory.bootclasspath = classpath end 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mirah-0.0.12-java | lib/mirah/util/compilation_state.rb |
mirah-0.0.11-java | lib/mirah/util/compilation_state.rb |