lib/java_head/class.rb
def test(*args)
      compile(*args)
      remove_class
      self
    rescue Exception => e
      puts "Exception of type #{e.class} while compiling #{fullname}: #{e}"
      nil
    end
# Test to see if compilation works, args are passed to the compile method
#
# @param [Array] args the arguments to be passed to the #compile method
# @return [JavaHead::Class,NilClass] this class object or nil if the compilation failed
Test to see if compilation works, args are passed to the compile method
Test to see if compilation works args are passed to the compile method
def test(*args)
      compile(*args)
      remove_class
      self
    rescue Exception => e
      puts "Exception of type #{e.class} while compiling #{fullname}: #{e}"
      nil
    end
def test ( * args ) compile ( * args ) remove_class self rescue Exception => e puts "Exception of type #{e.class} while compiling #{fullname}: #{e}" nil end
Test to see if compilation works, args are passed to the compile method
Test to see if compilation works args are passed to the compile method
this class object or nil if the compilation failed
this class object or nil if the compilation failed
JavaHead::Class,NilClass
args
args the arguments to be passed to the #compile method
args the arguments to be passed to the #compile method