1 /*
2 * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
103 intact. </P>
104
105 <P> The reason this method was placed in the type database is
106 that the latter is the first level at which it could be exposed,
107 and placing it here could avoid modifying the Type interface. It
108 is unclear what other, if any, vtbl access would be useful (or
109 implementable), so we are trying to avoid changing interfaces at
110 this point to support this kind of functionality. </P>
111
112 <P> This method necessarily does not support multiple
113 inheritance. </P> */
114 public boolean addressTypeIsEqualToType(Address addr, Type type);
115
116 /** Helper routine for guessing the most derived type of a
117 polymorphic C++ object. Iterates the type database calling
118 addressTypeIsEqualToType for all known types. Returns a matching
119 Type for the given address if one was found, or null if none was
120 found. */
121 public Type guessTypeForAddress(Address addr);
122
123 /** Returns an Iterator over the Types in the database. */
124 public Iterator getTypes();
125
126 /** Returns an Iterator over the String names of the integer
127 constants in the database. */
128 public Iterator getIntConstants();
129
130 /** Returns an Iterator over the String names of the long constants
131 in the database. */
132 public Iterator getLongConstants();
133 }
|
1 /*
2 * Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
103 intact. </P>
104
105 <P> The reason this method was placed in the type database is
106 that the latter is the first level at which it could be exposed,
107 and placing it here could avoid modifying the Type interface. It
108 is unclear what other, if any, vtbl access would be useful (or
109 implementable), so we are trying to avoid changing interfaces at
110 this point to support this kind of functionality. </P>
111
112 <P> This method necessarily does not support multiple
113 inheritance. </P> */
114 public boolean addressTypeIsEqualToType(Address addr, Type type);
115
116 /** Helper routine for guessing the most derived type of a
117 polymorphic C++ object. Iterates the type database calling
118 addressTypeIsEqualToType for all known types. Returns a matching
119 Type for the given address if one was found, or null if none was
120 found. */
121 public Type guessTypeForAddress(Address addr);
122
123 /** Helper routine for guessing the most derived type of a
124 polymorphic C++ object. Requires a baseType that must be virtual
125 so that lookup can be performed without false positives */
126 public Type findDynamicTypeForAddress(Address addr, Type baseType);
127
128 /** Returns an Iterator over the Types in the database. */
129 public Iterator getTypes();
130
131 /** Returns an Iterator over the String names of the integer
132 constants in the database. */
133 public Iterator getIntConstants();
134
135 /** Returns an Iterator over the String names of the long constants
136 in the database. */
137 public Iterator getLongConstants();
138 }
|