Did you know ...
Search Documentation:
Get methods
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
COMMERCIAL
WIKI
Login
View changes
Sandbox
Wiki help
All tags
Documentation
Reference manual
Packages
XPCE
Classes
class class_variable
Instance variables
Send methods
Get methods
class_variable<-convert_string
class_variable<-get
class_variable<-print_name
class_variable<-string_value
class_variable<-value
1.26.3
Get methods
class_variable <-convert_string:
textual=char_array
->
any
|
function
Called to convert the textual value found in the defaults file. It calls the
@object_parser
to translate the textual representation into an object, after which
class_variable
<-
type
is used to verify the type.
class_variable <-get:
object
->
unchecked
Invoke (read) class-variable. Required to make class-variables available as normal object-behaviour.
class_variable <-print_name:
->
name
Yields <class>.<name>. Used to print messages.
class_variable <-string_value:
->
char_array
Returns the textual value from the Defaults file. See also
pce
->
load_defaults
.
class_variable <-value:
->
any
Compute and return the value. Normally, the value is used as default for an instance-variable, or fetched using
object
<-
class_variable_value
.