/usr/share/doc/libserp-java/api/src-html/serp/bytecode/InstructionPtr.html is in libserp-java-doc 1.15.1-1.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Source code</title>
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<div class="sourceContainer">
<pre><span class="sourceLineNo">001</span>package serp.bytecode;<a name="line.1"></a>
<span class="sourceLineNo">002</span><a name="line.2"></a>
<span class="sourceLineNo">003</span>import java.util.*;<a name="line.3"></a>
<span class="sourceLineNo">004</span><a name="line.4"></a>
<span class="sourceLineNo">005</span>/**<a name="line.5"></a>
<span class="sourceLineNo">006</span> * An entity that maintains ptrs to instructions in a code block.<a name="line.6"></a>
<span class="sourceLineNo">007</span> *<a name="line.7"></a>
<span class="sourceLineNo">008</span> * @author Abe White<a name="line.8"></a>
<span class="sourceLineNo">009</span> */<a name="line.9"></a>
<span class="sourceLineNo">010</span>public interface InstructionPtr {<a name="line.10"></a>
<span class="sourceLineNo">011</span> /**<a name="line.11"></a>
<span class="sourceLineNo">012</span> * Use the byte indexes read from the class file to calculate and<a name="line.12"></a>
<span class="sourceLineNo">013</span> * set references to the target instruction(s) for this ptr.<a name="line.13"></a>
<span class="sourceLineNo">014</span> * This method will be called after the byte code<a name="line.14"></a>
<span class="sourceLineNo">015</span> * has been read in for the first time and before it is written after<a name="line.15"></a>
<span class="sourceLineNo">016</span> * modification.<a name="line.16"></a>
<span class="sourceLineNo">017</span> */<a name="line.17"></a>
<span class="sourceLineNo">018</span> public void updateTargets();<a name="line.18"></a>
<span class="sourceLineNo">019</span><a name="line.19"></a>
<span class="sourceLineNo">020</span> /**<a name="line.20"></a>
<span class="sourceLineNo">021</span> * Replace the given old, likely invalid, target with a new target. The<a name="line.21"></a>
<span class="sourceLineNo">022</span> * new target Instruction is guaranteed to be in the same code<a name="line.22"></a>
<span class="sourceLineNo">023</span> * block as this InstructionPtr.<a name="line.23"></a>
<span class="sourceLineNo">024</span> */<a name="line.24"></a>
<span class="sourceLineNo">025</span> public void replaceTarget(Instruction oldTarget, Instruction newTarget);<a name="line.25"></a>
<span class="sourceLineNo">026</span><a name="line.26"></a>
<span class="sourceLineNo">027</span> /**<a name="line.27"></a>
<span class="sourceLineNo">028</span> * Returns the Code block that owns the Instruction(s) this<a name="line.28"></a>
<span class="sourceLineNo">029</span> * InstructionPtr points to.<a name="line.29"></a>
<span class="sourceLineNo">030</span> */<a name="line.30"></a>
<span class="sourceLineNo">031</span> public Code getCode();<a name="line.31"></a>
<span class="sourceLineNo">032</span>}<a name="line.32"></a>
</pre>
</div>
</body>
</html>
|