< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/generic/MONITORENTER.java

Print this page

        

*** 19,43 **** * limitations under the License. */ package com.sun.org.apache.bcel.internal.generic; /** * MONITORENTER - Enter monitor for object * <PRE>Stack: ..., objectref -&gt; ...</PRE> * ! * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ ! public class MONITORENTER extends Instruction ! implements ExceptionThrower, StackConsumer { public MONITORENTER() { ! super(com.sun.org.apache.bcel.internal.Constants.MONITORENTER, (short)1); } ! public Class[] getExceptions() { ! return new Class[] { com.sun.org.apache.bcel.internal.ExceptionConstants.NULL_POINTER_EXCEPTION }; } /** * Call corresponding visitor method(s). The order is: --- 19,48 ---- * limitations under the License. */ package com.sun.org.apache.bcel.internal.generic; + import com.sun.org.apache.bcel.internal.ExceptionConst; /** * MONITORENTER - Enter monitor for object * <PRE>Stack: ..., objectref -&gt; ...</PRE> * ! * @version $Id: MONITORENTER.java 1747278 2016-06-07 17:28:43Z britter $ */ ! public class MONITORENTER extends Instruction implements ExceptionThrower, StackConsumer { ! public MONITORENTER() { ! super(com.sun.org.apache.bcel.internal.Const.MONITORENTER, (short) 1); } ! ! @Override ! public Class<?>[] getExceptions() { ! return new Class[] { ! ExceptionConst.NULL_POINTER_EXCEPTION ! }; } /** * Call corresponding visitor method(s). The order is:
*** 45,55 **** * call methods according to the class hierarchy in descending order, * i.e., the most specific visitXXX() call comes last. * * @param v Visitor object */ ! public void accept(Visitor v) { v.visitExceptionThrower(this); v.visitStackConsumer(this); v.visitMONITORENTER(this); } } --- 50,61 ---- * call methods according to the class hierarchy in descending order, * i.e., the most specific visitXXX() call comes last. * * @param v Visitor object */ ! @Override ! public void accept( final Visitor v ) { v.visitExceptionThrower(this); v.visitStackConsumer(this); v.visitMONITORENTER(this); } }
< prev index next >