001 /* 002 * This file is part of the Jikes RVM project (http://jikesrvm.org). 003 * 004 * This file is licensed to You under the Eclipse Public License (EPL); 005 * You may not use this file except in compliance with the License. You 006 * may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/eclipse-1.0.php 009 * 010 * See the COPYRIGHT.txt file distributed with this work for information 011 * regarding copyright ownership. 012 */ 013 package org.jikesrvm.compilers.opt.util; 014 015 016 /** 017 * Many clients of graph methods expect their graph nodes to 018 * implement a pair of scratch fields, one of int type and one of 019 * object type. This is a fairly evil thing to do, but it is deeply 020 * embedded in many places, and this interface can be used for such 021 * clients. It is not recommended, to put it mildly. 022 * 023 * @deprecated 024 * 025 * @see Graph 026 */ 027 @Deprecated 028 public interface GraphElement { 029 030 /** 031 * read the scratch field of int type 032 * @return the contents of the int scratch field 033 * @deprecated 034 */ 035 @Deprecated 036 int getScratch(); 037 038 /** 039 * set the scratch field of int type 040 * @param scratch the new contents of the int scratch field 041 * @deprecated 042 */ 043 @Deprecated 044 int setScratch(int scratch); 045 }