home
wiki
classes/clusters list
class information
+
Point of view
ANONYMOUS_FEATURE_MIXER
ANY
E_REQUIRE_VISITOR
E_REQUIRE
ANONYMOUS_FEATURE_MIXER
NATIVE_JAVA
VISITOR
SYSTEM_TOOLS
SMART_EIFFEL
COMPILE
SE
ACE
INSTALL
INTERNALS_HANDLER
All features
class E_REQUIRE
Summary
top
Such an object is used to store an ordinary
"require"
as well as a
"require else"
clause. Furthermore, a
E_REQUIRE
object can also be used to store all the inherited require assertions of some final feature.
Direct parents
inherit list:
VISITABLE
insert list:
ASSERTION_PRINT_TOOLS
,
GLOBALS
Overview
top
creation features
make
(sp:
POSITION
, else_flag:
BOOLEAN
, hc:
COMMENT
, l:
FAST_ARRAY
[
ASSERTION
])
exported features
start_position
:
POSITION
header_comment
:
COMMENT
is_require_else
:
BOOLEAN
Is it a
"require else"
assertion?
pretty_print
short
(type:
TYPE
, client:
CLASS_NAME
, hide_current:
BOOLEAN
)
collect
(type:
TYPE
)
adapt_for
(type:
TYPE
): E_REQUIRE
accept
(visitor:
E_REQUIRE_VISITOR
)
Accept to be visited by the
visitor
.
specialize_in
(type:
TYPE
): E_REQUIRE
specialize_thru
(parent_type:
TYPE
, parent_edge:
PARENT_EDGE
, new_type:
TYPE
): E_REQUIRE
specialize_2
(type:
TYPE
): E_REQUIRE
is_always_true
:
BOOLEAN
side_effect_free
(type:
TYPE
):
BOOLEAN
compile_to_c
(type:
TYPE
)
compile_to_jvm
(type:
TYPE
)
use_current
(type:
TYPE
):
BOOLEAN
has_been_specialized
:
BOOLEAN
add_parent_require
(parent_require: E_REQUIRE): E_REQUIRE
Add
parent_require
to
Current
only if it is really new code (i.e. using
start_position
to decide.).
start_position
:
POSITION
effective function
top
header_comment
:
COMMENT
effective function
top
is_require_else
:
BOOLEAN
writable attribute
top
Is it a
"require else"
assertion?
pretty_print
effective procedure
top
short
(type:
TYPE
, client:
CLASS_NAME
, hide_current:
BOOLEAN
)
effective procedure
top
collect
(type:
TYPE
)
effective procedure
top
adapt_for
(type:
TYPE
): E_REQUIRE
effective function
top
require
type /= Void
accept
(visitor:
E_REQUIRE_VISITOR
)
effective procedure
top
Accept to be visited by the
visitor
.
require
visitor /= Void
specialize_in
(type:
TYPE
): E_REQUIRE
effective function
top
require
type /= Void
ensure
Result.
has_been_specialized
specialize_thru
(parent_type:
TYPE
, parent_edge:
PARENT_EDGE
, new_type:
TYPE
): E_REQUIRE
effective function
top
require
parent_type /= Void
parent_edge /= Void
new_type /= Void
new_type /= parent_type
has_been_specialized
ensure
has_been_specialized
Result.
has_been_specialized
specialize_2
(type:
TYPE
): E_REQUIRE
effective function
top
require
has_been_specialized
ensure
has_been_specialized
Result.
has_been_specialized
is_always_true
:
BOOLEAN
effective function
top
side_effect_free
(type:
TYPE
):
BOOLEAN
effective function
top
compile_to_c
(type:
TYPE
)
effective procedure
top
compile_to_jvm
(type:
TYPE
)
effective procedure
top
use_current
(type:
TYPE
):
BOOLEAN
effective function
top
has_been_specialized
:
BOOLEAN
effective function
top
add_parent_require
(parent_require: E_REQUIRE): E_REQUIRE
effective function
top
Add
parent_require
to
Current
only if it is really new code (i.e. using
start_position
to decide.).
require
parent_require /= Void
ensure
Result.
start_position
=
start_position