Class: Languages::Repetition Abstract
- Inherits:
-
Object
- Object
- Languages::Repetition
- Defined in:
- lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb
Overview
This class is abstract.
Repetition class handling repetition structures.
Direct Known Subclasses
Instance Method Summary collapse
-
#detect_repetition(pLine) ⇒ Object
protected
Try to detect possible repetition in the line.
-
#get_expression(pType, pString) ⇒ Object
protected
Try to extract the expression.
-
#get_repetition(pLine) ⇒ Object
Get conditional.
-
#remove_unnecessary_information(pString) ⇒ Object
protected
Take an partial result of string, and remove unnecessary informations.
-
#repetition_type(pString) ⇒ Object
protected
Handling string type.
Instance Method Details
#detect_repetition(pLine) ⇒ Object (protected)
Try to detect possible repetition in the line.
20 21 22 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb', line 20 def detect_repetition(pLine) raise NotImplementedError end |
#get_expression(pType, pString) ⇒ Object (protected)
Try to extract the expression.
35 36 37 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb', line 35 def get_expression(pType, pString) raise NotImplementedError end |
#get_repetition(pLine) ⇒ Object
Get conditional.
11 12 13 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb', line 11 def get_repetition(pLine) raise NotImplementedError end |
#remove_unnecessary_information(pString) ⇒ Object (protected)
Take an partial result of string, and remove unnecessary informations.
42 43 44 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb', line 42 def remove_unnecessary_information(pString) raise NotImplementedError end |
#repetition_type(pString) ⇒ Object (protected)
Handling string type
27 28 29 |
# File 'lib/kuniri/language/abstract_container/structured_and_oo/repetition.rb', line 27 def repetition_type(pString) raise NotImplementedError end |