Class: AsProject::AsClassProject

Inherits:
EclipseProject show all
Defined in:
lib/asclass.rb

Overview

TODO: Refactor EclipseProject out so that Project just instantiates a parser as needed and this class extends the more abstract Project

Instance Attribute Summary

Attributes inherited from PathFinder

#execution_dir

Attributes inherited from TemplateResolver

#ignore_all, #replace_all

Instance Method Summary collapse

Methods inherited from EclipseProject

#file_path, #file_path=, #initialize, #parse

Methods inherited from Project

#binary_dir, #find_project, #initialize, #library_dir, #resolve_location, #source_dir, #test_dir

Methods inherited from PathFinder

#asproject_player_trust, #current_project, #current_project=, #downloads, #flash_player_config, #flash_player_config_content, #flash_player_home, #flash_player_log, #flash_player_trust, #gem_asproject_home, #get_available_templates, #get_children, #get_gem_template, #get_project_template, #get_template, #get_user_template, #initialize, #lib_downloads, #mxmlc, #remote_file_task, #user, #user_asproject_home, #user_home, #user_library

Methods inherited from TemplateResolver

#b, #clean_file_name, #copy_file, #copy_files, #initialize, #is_binary?, #project_name, #render_file, #should_render?, #write_file?

Constructor Details

This class inherits a constructor from AsProject::EclipseProject

Instance Method Details

#add_child_lineObject



233
234
235
236
237
238
239
# File 'lib/asclass.rb', line 233

def add_child_line
  if(display_object?)
    return "\n      addChild(#{instance_name});"
  else
    return ""
  end
end

#class_nameObject



209
210
211
# File 'lib/asclass.rb', line 209

def class_name
  return self['class_name']
end

#display_object?Boolean

Returns:

  • (Boolean)


229
230
231
# File 'lib/asclass.rb', line 229

def display_object?
  self['display_object']
end

#full_class_nameObject



213
214
215
# File 'lib/asclass.rb', line 213

def full_class_name
  return self['full_class_name']
end

#full_test_case_nameObject



221
222
223
# File 'lib/asclass.rb', line 221

def full_test_case_name
  self['full_test_case_name']
end

#instance_nameObject



225
226
227
# File 'lib/asclass.rb', line 225

def instance_name
  self['instance_name']
end

#package_nameObject



205
206
207
# File 'lib/asclass.rb', line 205

def package_name
  return self['package_name']
end

#remove_child_lineObject



241
242
243
244
245
246
247
# File 'lib/asclass.rb', line 241

def remove_child_line
  if(display_object?)
    return "removeChild(#{instance_name});\n      "
  else
    return ""
  end
end

#test_case_nameObject



217
218
219
# File 'lib/asclass.rb', line 217

def test_case_name
  return self['test_case_name']
end