< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/StackMap.java

Print this page

        

*** 28,44 **** import com.sun.org.apache.bcel.internal.Const; /** * This class represents a stack map attribute used for * preverification of Java classes for the <a ! * href="http://java.sun.com/j2me/"> Java 2 Micro Edition</a> ! * (J2ME). This attribute is used by the <a ! * href="http://java.sun.com/products/cldc/">KVM</a> and contained ! * within the Code attribute of a method. See CLDC specification * 5.3.1.2 * - * @version $Id$ * @see Code * @see StackMapEntry * @see StackMapType */ public final class StackMap extends Attribute { --- 28,43 ---- import com.sun.org.apache.bcel.internal.Const; /** * This class represents a stack map attribute used for * preverification of Java classes for the <a ! * href="https://www.oracle.com/java/technologies/javameoverview.html">Java Platform, Micro Edition</a> ! * (Java ME). This attribute is used by the <a ! * href="https://www.oracle.com/technetwork/java/embedded/javame/java-mobile/kvmwp-150240.pdf">KVM</a> ! * and contained within the Code attribute of a method. See CLDC specification * 5.3.1.2 * * @see Code * @see StackMapEntry * @see StackMapType */ public final class StackMap extends Attribute {
*** 82,92 **** * * @param file Output file stream * @throws IOException */ @Override ! public final void dump( final DataOutputStream file ) throws IOException { super.dump(file); file.writeShort(map.length); for (final StackMapEntry entry : map) { entry.dump(file); } --- 81,91 ---- * * @param file Output file stream * @throws IOException */ @Override ! public void dump( final DataOutputStream file ) throws IOException { super.dump(file); file.writeShort(map.length); for (final StackMapEntry entry : map) { entry.dump(file); }
*** 94,112 **** /** * @return Array of stack map entries */ ! public final StackMapEntry[] getStackMap() { return map; } /** * @param map Array of stack map entries */ ! public final void setStackMap( final StackMapEntry[] map ) { this.map = map; int len = 2; // Length of 'number_of_entries' field prior to the array of stack maps for (final StackMapEntry element : map) { len += element.getMapEntrySize(); } --- 93,111 ---- /** * @return Array of stack map entries */ ! public StackMapEntry[] getStackMap() { return map; } /** * @param map Array of stack map entries */ ! public void setStackMap( final StackMapEntry[] map ) { this.map = map; int len = 2; // Length of 'number_of_entries' field prior to the array of stack maps for (final StackMapEntry element : map) { len += element.getMapEntrySize(); }
*** 116,126 **** /** * @return String representation. */ @Override ! public final String toString() { final StringBuilder buf = new StringBuilder("StackMap("); for (int i = 0; i < map.length; i++) { buf.append(map[i]); if (i < map.length - 1) { buf.append(", "); --- 115,125 ---- /** * @return String representation. */ @Override ! public String toString() { final StringBuilder buf = new StringBuilder("StackMap("); for (int i = 0; i < map.length; i++) { buf.append(map[i]); if (i < map.length - 1) { buf.append(", ");
*** 157,165 **** public void accept( final Visitor v ) { v.visitStackMap(this); } ! public final int getMapLength() { return map == null ? 0 : map.length; } } --- 156,164 ---- public void accept( final Visitor v ) { v.visitStackMap(this); } ! public int getMapLength() { return map == null ? 0 : map.length; } }
< prev index next >