Class: Languages::Aggregation Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/kuniri/language/abstract_container/structured_and_oo/aggregation.rb

Overview

This class is abstract.

Aggregation is a container for handling aggregation among classes

Direct Known Subclasses

Ruby::AggregationRuby

Instance Method Summary collapse

Instance Method Details

#detect_aggregation(pLine) ⇒ Object (protected)

Detect if an aggregation exists.

Parameters:

  • pLine

    Line to inspect.

Returns:

  • Returns an row string, otherwise returns nil.

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/kuniri/language/abstract_container/structured_and_oo/aggregation.rb', line 21

def detect_aggregation(pLine)
  raise NotImplementedError
end

#get_aggregation(pLine) ⇒ Object

Verify if line has an aggregation.

Parameters:

  • pLine

    Line with the potential class.

Returns:

  • Return an object AggregationData if it find a class in the line, otherwise return nil.

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/kuniri/language/abstract_container/structured_and_oo/aggregation.rb', line 12

def get_aggregation(pLine)
  raise NotImplementedError
end