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

#current_project, #current_project=, #flash_player_config, #flash_player_config_content, #flash_player_debug, #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, #remote_file_task, #user_asproject_home, #user_home, #user_library

Methods inherited from TemplateResolver

#clean_file_name, #copy_file, #copy_files, #file_is_binary?, #initialize, #project_name, #render_file, #should_render?, #write_file?

Constructor Details

This class inherits a constructor from AsProject::EclipseProject

Instance Method Details

#add_child_lineObject



236
237
238
239
240
241
242
# File 'lib/asclass.rb', line 236

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

#class_nameObject



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

def class_name
  return self['class_name']
end

#display_object?Boolean

Returns:

  • (Boolean)


232
233
234
# File 'lib/asclass.rb', line 232

def display_object?
  self['display_object']
end

#full_class_nameObject



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

def full_class_name
  return self['full_class_name']
end

#full_test_case_nameObject



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

def full_test_case_name
  self['full_test_case_name']
end

#instance_nameObject



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

def instance_name
  self['instance_name']
end

#package_nameObject



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

def package_name
  return self['package_name']
end

#remove_child_lineObject



244
245
246
247
248
249
250
# File 'lib/asclass.rb', line 244

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

#test_case_nameObject



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

def test_case_name
  return self['test_case_name']
end