src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.graph/src/org/graalvm/compiler/graph/Position.java
changeset 57537 ecc6e394475f
parent 52910 583fd71c47d6
equal deleted inserted replaced
57536:67cce1b84a9a 57537:ecc6e394475f
   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 }