src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/Position.java
equal
deleted
inserted
replaced
144 * Gets the index of the {@link Node} or {@link NodeList} field denoted by this position. |
144 * Gets the index of the {@link Node} or {@link NodeList} field denoted by this position. |
145 */ |
145 */ |
146 public int getIndex() { |
146 public int getIndex() { |
147 return index; |
147 return index; |
148 } |
148 } |
|
149 |
|
150 public Class<?> getType() { |
|
151 if (index < edges.getDirectCount()) { |
|
152 return edges.getType(index); |
|
153 } else { |
|
154 return Node.class; |
|
155 } |
|
156 } |
149 } |
157 } |