deferred class COMPOSED_NODE
Summary
Class invariant
Overview
Exported features
Emittability
Comparability
Assigned name
Collection-like command
Plugin
Syntactic sugar
Descriptions reading
  • read_descriptions_from (a_file_name: STRING)
    Read description comment for classes and features from the file named a_file_name, filling class_descriptions and feature_descriptions.
  • read_description (a_described: STRING, a_description: COLLECTION[STRING])
    When a_described is a valid class name (i.e. "CLASS_NAME_01") a_description is added into class_descriptions; when a_described is a valid class name with a feature name with a dot in the middle (like "ANOTHER_CLASS.my_feature_12_foo"); adds a_description is added into feature_descriptions in the latter.
Outputting description
Queries
Auxiliary features
Various exceptions codes:
Status report:
Basic operations:
  • die (code: INTEGER_32)
    Terminate execution with exit status code, without triggering an exception.
  • raise (name: STRING)
    Raise a developer exception of name name.
  • throw (a_exception: EXCEPTION)
Non-Standard Extensions:
  • is_equal (other: COMPOSED_NODE): BOOLEAN
    Is other attached to an object considered equal to current object?
  • infix "<=" (other: COMPOSED_NODE): BOOLEAN
    Is Current less than or equal other?
  • infix ">" (other: COMPOSED_NODE): BOOLEAN
    Is Current strictly greater than other?
  • infix ">=" (other: COMPOSED_NODE): BOOLEAN
    Is Current greater than or equal than other?
  • in_range (lower: COMPOSED_NODE, upper: COMPOSED_NODE): BOOLEAN
    Return True if Current is in range [lower..upper]
    See also min, max, compare.
  • compare (other: COMPOSED_NODE): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • three_way_comparison (other: COMPOSED_NODE): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • min (other: COMPOSED_NODE): COMPOSED_NODE
    Minimum of Current and other.
  • max (other: COMPOSED_NODE): COMPOSED_NODE
    Maximum of Current and other.
  • bounded_by (a_min: COMPOSED_NODE, a_max: COMPOSED_NODE): COMPOSED_NODE
    A value that is equal to Current if it is between the limits set by a_min and a_max.
set_name (a_name: STRING)
effective procedure
Set assigned_name to a_name.
store
deferred procedure
Store current into the proper collection
c_type: STRING
deferred function
The actual type - i.e struct, union - to be put into low level getter and setters code
writable attribute
members: UNICODE_STRING
effective function
is_to_be_emitted: BOOLEAN
effective function
Shall Current node be wrapped?
emit_wrapper
effective procedure
Emit a reference wrapper for Current C composed type.
emit_header
effective procedure
Append the header of Current structure to buffer.
emit_members
effective procedure
local
     members: UNICODE_STRING; members_iter: ITERATOR[UNICODE_STRING]; field: XML_COMPOSITE_NODE
emit_size
effective procedure
Append to output the struct_size query for Current.
emit_footer
effective procedure
is_artificial: BOOLEAN
effective function
insert_tense: STRING
is " insert STANDARD_C_LIBRARY_TYPES "
constant attribute
TODO: the above reference to STANDARD_C_LIBRARY_TYPES creates requires to wrap standard C library using a file called "standard-c-library.gcc-xml"; shall another name be allowerd for such a fundamental library?
compute_eiffel_name
effective procedure
suffix: STRING
deferred function
emitted: BOOLEAN
writable attribute
Has Current node been already been wrapped?
infix "<" (other: NAMED_NODE): BOOLEAN
effective function
Comparon made on the name used in the wrappers
is_anonymous: BOOLEAN
effective function
Is Current node anonynmous?
is_named: BOOLEAN
effective function
Does Current actually have a name?
effective function
c_string_name: STRING
effective function
eiffel_name: STRING
effective function
the name of Current when wrapped in Liberty Eiffel.
is_public: BOOLEAN
effective function
Does Current node have a name and does it start with an alphabetical character?
assigned_name: STRING
writable attribute
has_assigned_name: BOOLEAN
effective function
for_each (a_procedure: PROCEDURE[TUPLE 1[GCCXML_NODE]])
effective procedure
Apply 'a_procedure' to all heir nodes of known type.
emit_wrappers
effective procedure
Recursively descend the tree invoking emit_wrapper on WRAPPER_CLASS nodes.
writable attribute
The name of the node
attribute_name (index: INTEGER_32): UNICODE_STRING
effective function
The name of the i'th attribute
attribute_value (index: INTEGER_32): UNICODE_STRING
effective function
The value of the i'th attribute
attribute_at (a_attribute_name: UNICODE_STRING): UNICODE_STRING
effective function
The value of the attribute given by its name; Void if not set
attributes_count: INTEGER_32
effective function
The number of attributes
child (index: INTEGER_32): XML_NODE
effective function
The i'th child
children_count: INTEGER_32
effective function
The number of children
accept (visitor: VISITOR)
effective procedure
Accept to be visited by the visitor.
line: INTEGER_32
writable attribute
The position of the node in its source file
column: INTEGER_32
writable attribute
The position of the node in its source file
writable attribute
The parent of the node, Void if it is the root
set_parent (a_parent: XML_COMPOSITE_NODE)
effective procedure
settings: SETTINGS
once function
The singleton to access all the shared settings
directory: STRING
effective function
Shortcut for settings.directory
include: TEXT_FILE_WRITE
once function
once function
verbose: BOOLEAN
effective function
global: BOOLEAN
effective function
read_descriptions_from (a_file_name: STRING)
effective procedure
Read description comment for classes and features from the file named a_file_name, filling class_descriptions and feature_descriptions.
read_description (a_described: STRING, a_description: COLLECTION[STRING])
effective procedure
When a_described is a valid class name (i.e. "CLASS_NAME_01") a_description is added into class_descriptions; when a_described is a valid class name with a feature name with a dot in the middle (like "ANOTHER_CLASS.my_feature_12_foo"); adds a_description is added into feature_descriptions in the latter.
emit_description_on (a_description: COLLECTION[STRING], a_formatter: FORMATTER)
effective procedure
Put 'a_description' on 'a_formatter' formatting it as an Eiffel comment with lines shorter that 'description_lenght' characters.
feature_description (a_class_name: STRING, a_feature_name: STRING): COLLECTION[STRING]
effective function
The description of a_feature_name in a_class_name.
same_files (path1: ABSTRACT_STRING, path2: ABSTRACT_STRING): BOOLEAN
effective function
True if the path1 file exists and has the very same content as file path2.
same_physical_file (path1: ABSTRACT_STRING, path2: ABSTRACT_STRING): BOOLEAN
effective function
True if path1 and path2 physically refer to the same file (e.g. symlinks to a same file will return True here)
file_exists (path: ABSTRACT_STRING): BOOLEAN
effective function
is_readable (path: ABSTRACT_STRING): BOOLEAN
effective function
True if path file exists and is either a readable file or an accessible directory.
is_empty (path: ABSTRACT_STRING): BOOLEAN
effective function
True if path file exists, is readable and is an empty file.
rename_to (old_path: ABSTRACT_STRING, new_path: ABSTRACT_STRING)
effective procedure
Try to change the name or the location of a file.
last_rename_succeeded: BOOLEAN
writable attribute
True if the last call to rename_to` was successful.
copy_to (source_path: ABSTRACT_STRING, target_path: ABSTRACT_STRING)
effective procedure
Try to copy the source into the target.
last_copy_succeeded: BOOLEAN
writable attribute
True if the last call to copy_to` was successful.
delete (path: ABSTRACT_STRING)
effective procedure
Try to delete the given path file.
last_delete_succeeded: BOOLEAN
writable attribute
True if the last call to delete` was successful.
size_of (path: ABSTRACT_STRING): INTEGER_32
effective function
Total size of file path in number of bytes.
last_change_of (path: ABSTRACT_STRING): TIME
effective function
Of the last modification of path.
is_file (path: ABSTRACT_STRING): BOOLEAN
effective function
Is path a regular file?
is_directory (path: ABSTRACT_STRING): BOOLEAN
effective function
Is path a directory?
eiffel_feature (a_name: ABSTRACT_STRING): STRING
effective function
Translate a_name content into a proper feature name for the Gnu-Eiffel language.
eiffel_argument (a_name: ABSTRACT_STRING): STRING
effective function
a_name content translated into a proper argument placeholder for the Gnu-Eiffel language.
insert_underscores (a_string: STRING)
effective procedure
Insert an underscore ('_') before each uppercase letter following a lowercase one.
camelcase_translator: REGULAR_EXPRESSION
once function
Insert an underscore ('_') between any lowercase letter followed by an uppercase one
multiple_underscores_remover: REGULAR_EXPRESSION
once function
Replace all multiple occurences of underscore "_" with a single one
lt_translator: REGULAR_EXPRESSION
once function
Replace all occurences of "<" (shown as "&lt;") with "_of_"
gt_translator: REGULAR_EXPRESSION
once function
Remove all occurences of ">" (shown as "&gt;")
namespace_separator_translator: REGULAR_EXPRESSION
once function
Replace all occurences of "::" (C++ namespace separator) with "_"
is_public_name (a_name: ABSTRACT_STRING): BOOLEAN
effective function
Does a_name start with an alphabetical character?
eiffel_class_name (a_string: ABSTRACT_STRING, a_suffix: ABSTRACT_STRING): STRING
effective function
An Eiffel class name derived from a_string.
is_valid_class_name (a_name: ABSTRACT_STRING): BOOLEAN
effective function
Does a_name represents a valid Eiffel class name?
adapt (a_name: ABSTRACT_STRING, a_suffix: ABSTRACT_STRING): STRING
effective function
A valid, adapted identifier for an Eiffel feature labelled a_name.
Check_instruction: INTEGER_32
is 1
constant attribute
Exception code for violated check.
Class_invariant: INTEGER_32
is 2
constant attribute
Exception code for violated class invariant.
Developer_exception: INTEGER_32
is 3
constant attribute
Exception code for developer exception.
Incorrect_inspect_value: INTEGER_32
is 4
constant attribute
Exception code for inspect statement.
Loop_invariant: INTEGER_32
is 5
constant attribute
Exception code for violated loop invariant
Loop_variant: INTEGER_32
is 6
constant attribute
Exception code for non-decreased loop variant
No_more_memory: INTEGER_32
is 7
constant attribute
Exception code for failed memory allocation
Postcondition: INTEGER_32
is 8
constant attribute
Exception code for violated postcondition.
Precondition: INTEGER_32
is 9
constant attribute
Exception code for violated precondition.
Routine_failure: INTEGER_32
is 10
constant attribute
Exception code for failed routine.
Os_signal: INTEGER_32
is 11
constant attribute
Exception code for a signal received from the OS.
Void_attached_to_expanded: INTEGER_32
is 12
constant attribute
Exception code for attachment of Void value to expanded entity.
Void_call_target: INTEGER_32
is 13
constant attribute
Exception code for feature applied to Void reference
System_level_type_error: INTEGER_32
is 14
constant attribute
Exception code for the system-level type error (this kind of error mostly arise with covariant redefinition).
exception_name: STRING
effective function
name_of_exception (a_exception: INTEGER_32): STRING
effective function
developer_exception: EXCEPTION
effective function
The last developer-thrown exception.
developer_exception_name: STRING
effective function
Name of last developer-raised exception.
is_developer_exception: BOOLEAN
effective function
Is the last exception originally due to a developer exception?
is_developer_named_exception: BOOLEAN
effective function
Is the last exception originally due to a developer exception?
is_developer_exception_of_name (name: STRING): BOOLEAN
effective function
Is the last exception originally due to a developer exception of name name?
assertion_violation: BOOLEAN
effective function
Is last exception originally due to a violated assertion or non-decreasing variant?
exception: INTEGER_32
Code of last exception that occurred.
is_signal: BOOLEAN
effective function
Is last exception originally due to an external event (operating system signal) ?
die (code: INTEGER_32)
effective procedure
Terminate execution with exit status code, without triggering an exception.
raise (name: STRING)
effective procedure
Raise a developer exception of name name.
throw (a_exception: EXCEPTION)
effective procedure
signal_number: INTEGER_32
Signal Number received from OS.
is_equal (other: COMPOSED_NODE): BOOLEAN
effective function
Is other attached to an object considered equal to current object?
infix "<=" (other: COMPOSED_NODE): BOOLEAN
effective function
Is Current less than or equal other?
infix ">" (other: COMPOSED_NODE): BOOLEAN
effective function
Is Current strictly greater than other?
infix ">=" (other: COMPOSED_NODE): BOOLEAN
effective function
Is Current greater than or equal than other?
in_range (lower: COMPOSED_NODE, upper: COMPOSED_NODE): BOOLEAN
effective function
Return True if Current is in range [lower..upper]
See also min, max, compare.
compare (other: COMPOSED_NODE): INTEGER_32
effective function
If current object equal to other, 0 if smaller, -1; if greater, 1.
three_way_comparison (other: COMPOSED_NODE): INTEGER_32
effective function
If current object equal to other, 0 if smaller, -1; if greater, 1.
min (other: COMPOSED_NODE): COMPOSED_NODE
effective function
Minimum of Current and other.
max (other: COMPOSED_NODE): COMPOSED_NODE
effective function
Maximum of Current and other.
bounded_by (a_min: COMPOSED_NODE, a_max: COMPOSED_NODE): COMPOSED_NODE
effective function
A value that is equal to Current if it is between the limits set by a_min and a_max.
file_id: UNICODE_STRING
effective function
line_row: UNICODE_STRING
effective function
The line in the source code where Current is defined
c_file: C_FILE
effective function
set_file (a_file: C_FILE)
effective procedure
Make Current node as if it was defined into a_file Consider Current as if it wes defined in a_file_name.
is_fundamental: BOOLEAN
deferred function
Does current node refers to a fundamental C type?
is_void: BOOLEAN
deferred function
Is Current node of type void?
has_wrapper: BOOLEAN
deferred function
Does Current actually have a wrapper type in Liberty?
wrapper_type: STRING
deferred function
The name of the class of Liberty that wraps Current fundamental type.