Class: CIAT::Processors::Java
- Inherits:
-
Object
- Object
- CIAT::Processors::Java
- Includes:
- BasicProcessing
- Defined in:
- lib/ciat/processors/java.rb
Overview
Executor class for Java interpreters.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#kind ⇒ Object
Traffic light.
Instance Method Summary collapse
-
#describe ⇒ Object
Provides a description of the processor.
- #executable ⇒ Object
-
#initialize(classpath, interpreter_class) {|_self| ... } ⇒ Java
constructor
Creates a Java executor.
Methods included from BasicProcessing
#command_line_args, #diff, #error_file, #execute, #input_file, #output_file, #process
Methods included from Differs::HtmlDiffer
Constructor Details
#initialize(classpath, interpreter_class) {|_self| ... } ⇒ Java
Creates a Java executor.
Possible options:
-
:description
is the description used in the HTML report for this processor (default:"Parrot virtual machine"
).
17 18 19 20 21 22 23 |
# File 'lib/ciat/processors/java.rb', line 17 def initialize(classpath, interpreter_class) @classpath = classpath @interpreter_class = interpreter_class self.kind = CIAT::Processors::Interpreter.new self.description = "in-Java interpreter" yield self if block_given? end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
10 11 12 |
# File 'lib/ciat/processors/java.rb', line 10 def description @description end |
#kind ⇒ Object
Traffic light
9 10 11 |
# File 'lib/ciat/processors/java.rb', line 9 def kind @kind end |
Instance Method Details
#describe ⇒ Object
Provides a description of the processor.
26 27 28 |
# File 'lib/ciat/processors/java.rb', line 26 def describe @description end |
#executable ⇒ Object
30 31 32 |
# File 'lib/ciat/processors/java.rb', line 30 def executable "java -cp '#{@classpath}' #{@interpreter_class}" end |