Class: Apparat::Dump

Inherits:
Sprout::Executable::Base
  • Object
show all
Defined in:
lib/apparat/dump.rb

Instance Method Summary collapse

Instance Method Details

#abcObject

If you spefiy the “-abc” parameter, dump will output detailed ABC information.



30
# File 'lib/apparat/dump.rb', line 30

add_param :abc, Boolean, { :shell_name => '-abc', :hidden_value => true }

#bcObject

If “-abc” is specified you can also change the way how methods are written. “-bc raw” will show raw bytes, “-bc cfg” will output methods as control flow graphs in DOT format. “-bc default” will use Apparat’s default bytecode representation.



37
# File 'lib/apparat/dump.rb', line 37

add_param :bc, String, { :shell_name => '-bc', :delimiter => ' ' }

#executableObject

The default executable target



42
# File 'lib/apparat/dump.rb', line 42

set :executable, :dump

#inputObject

The source file to dump



8
# File 'lib/apparat/dump.rb', line 8

add_param :input, File, { :required => true, :shell_name => '-i', :delimiter => ' ' }

#outputObject

An optional output directory.



13
# File 'lib/apparat/dump.rb', line 13

add_param :output, String, { :shell_name => '-o', :delimiter => ' ' }

#swfObject

If you speficy the “-swf” parameter the tag information of the file is exported



18
# File 'lib/apparat/dump.rb', line 18

add_param :swf, Boolean, { :shell_name => '-swf', :hidden_value => true }

#umlObject

If you speficy the “-uml” parameter a UML graph for the given file is generated in DOT format. This format can be opened with OmniGraffle in OS X or you can transform it to an image or SVG with Graphviz.



25
# File 'lib/apparat/dump.rb', line 25

add_param :uml, Boolean, { :shell_name => '-uml', :hidden_value => true }