/usr/share/doc/stilts/sun256/instanceMethods.html is in stilts-doc 3.1.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="sun-style.css">
<title>Instance Methods</title>
</head>
<body>
<hr>
<a href="jelExtend.html">Next</a> <a href="sec10.7.1.html">Previous</a> <a href="jelAdvanced.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="jelExtend.html">Adding User-Defined Functions</a><br>
<b>Up: </b><a href="jelAdvanced.html">Advanced Topics</a><br>
<b>Previous: </b><a href="sec10.7.1.html">Expression evaluation</a><br>
<hr>
<h4><a name="instanceMethods">10.7.2 Instance Methods</a></h4>
<p>There is another category of functions which can be used apart from
those listed in <a href="staticMethods.html">Section 10.5</a>.
These are called, in Java/object-oriented parlance, "instance methods"
and represent functions that can be executed on an object.
</p>
<p>It is possible to invoke any of its public
instance methods on any object
(though not on primitive values - numeric and boolean ones).
The syntax is that you place a "." followed by the method invocation
after the object you want to invoke the method on,
hence <code>NAME.substring(3)</code> instead of <code>substring(NAME,3)</code>.
If you know what you're doing, feel free to go ahead and do this.
However, most of the instance methods you're likely to want to use
have equivalents in the normal functions listed in the previous section,
so unless you're a Java programmer or feeling adventurous,
you may be best off ignoring this feature.
</p>
<hr><a href="jelExtend.html">Next</a> <a href="sec10.7.1.html">Previous</a> <a href="jelAdvanced.html">Up</a> <a href="index.html">Contents</a> <br> <b>Next: </b><a href="jelExtend.html">Adding User-Defined Functions</a><br>
<b>Up: </b><a href="jelAdvanced.html">Advanced Topics</a><br>
<b>Previous: </b><a href="sec10.7.1.html">Expression evaluation</a><br>
<hr><i>STILTS - Starlink Tables Infrastructure Library Tool Set<br>Starlink User Note256<br>STILTS web page:
<a href="http://www.starlink.ac.uk/stilts/">http://www.starlink.ac.uk/stilts/</a><br>Author email:
<a href="mailto:m.b.taylor@bristol.ac.uk">m.b.taylor@bristol.ac.uk</a><br>Mailing list:
<a href="mailto:topcat-user@jiscmail.ac.uk">topcat-user@jiscmail.ac.uk</a><br></i></body>
</html>
|