11.2.12 Hook Predicates
user:breakpoint_expansion(
+Macro,
-Body)
hook,development- defines debugger condition macros
user:debugger_command_hook(
+DCommand,
-Actions)
hook,development- Allows the interactive debugger to be extended with user-defined
commands.
user:error_exception(
=Exception)
hook- Exception is an exception that traps to the debugger if it is
switched on.
user:file_search_path(
+F,
-D)
hook- directory D is included in file search path F
foreign(
+F,
-P)
foreign(
+F,
-L,
-P)
- Describes the interface between Prolog and the foreign
Routine
foreign_resource(
+R,
-L)
- resource R defines foreign functions in list L
user:generate_message_hook(
+M,
?S0,
?S)
hook- A way for the user to override the call to
'SU_messages':generate_message/3
in print_message/2
.
goal_expansion(
+Term1,
+Layout1,
+Module,
-Term2,
-Layout2)
hook- Defines transformations on goals while clauses are being compiled or asserted,
and during meta-calls.
user:library_directory(
-D)
hook- D is a library directory that will be searched
user:message_hook(
+S,
+M,
+L)
hook- Overrides the call to
print_message_lines/3
in print_message/2
.
user:portray(
+T)
- A way for the user to over-ride the default behavior
of
print/1
.
user:portray_message(
+S,
+M)
hook- Tells
print_message/2
what to do.
user:query_hook(
+QueryClass,
+Query,
+QueryLines,
+Help,
+HelpLines,
-Answer)
hook- Called by
ask_query/4
before processing the query. If this
predicate succeeds, it is assumed that the query has been
processed and nothing further is done.
user:query_class_hook(
+QueryClass,
-Prompt,
-InputMethod,
-MapMethod,
-FailureMode)
hook- Provides the user with a method of overriding the call to
'SU_messages':query_class/5
in the preparation phase of query
processing. This way the default query class characteristics can be
changed.
user:query_input_hook(
+InputMethod,
+Prompt,
-RawInput)
hook- Provides the user with a method of overriding the call to
'SU_messages':query_input/3
in the input phase of query
processing. This way the implementation of the default input methods
can be changed.
user:query_map_hook(
+MapMethod,
+RawInput,
-Result,
-Answer)
hook- Provides the user with a method of overriding the call to
'SU_messages':query_map/4
in the mapping phase of query
processing. This way the implementation of the default map methods
can be changed.
user:runtime_entry(
+M)
hook- This predicate is called upon start-up and
exit of stand alone applications.
user:term_expansion(
+Term1,
+Layout1,
+Tokens1,
-Term2,
-Layout2,
-Tokens2)
hook- Overrides or complements the standard transformations to be done by
expand_term/2
.
user:unknown_predicate_handler(
+G,
+M,
-N)
hook- hook to trap calls to unknown predicates
Send feedback on this subject.