@Override public boolean select(Object ... context) { return X_Runtime.isDebug(); } }
/** * Returns <code>num_annotations</code>. */ public int numAnnotations() { return X_Byte.readU16bit(info, 0); }
public Builder() { concurrent = X_Runtime.isMultithreaded(); }
@Override public boolean hasNext() { try { next = reader.readLine(); if (next == null) { reader.close(); return false; } return true; }catch(IOException e) { throw X_Util.rethrow(e); } }
public boolean ifNext(K position) { if (equal(todo[this.position], position)) { bump(); return true; } return false; }
private void write16bit(int value) throws IOException { byte[] buf = new byte[2]; X_Byte.write16bit(value, buf, 0); output.write(buf); } }
protected byte[] toBinary(final String convert) { return X_String.getBytes(convert); }
@Override public boolean hasNext() { try { next = reader.readLine(); if (next == null) { reader.close(); return false; } return true; }catch(IOException e) { throw X_Debug.wrap(e); } }
@Override public final boolean contains(final E value) { for (final E e : forEach()) { if (X_Util.equal(value, e)) { return true; } } return false; }
public boolean isMultiThreaded() { return X_Runtime.isMultithreaded(); }
/** * Sets <code>classes[nth].outer_class_info_index</code> to * the given index. */ public void setOuterClassIndex(int nth, int index) { X_Byte.write16bit(index, get(), nth * 8 + 4); }
final int annotation(int pos) throws Exception { int type = X_Byte.readU16bit(info, pos); int numPairs = X_Byte.readU16bit(info, pos + 2); return annotation(pos + 4, type, numPairs); }
protected boolean isMultithreaded() { return X_Runtime.isMultithreaded(); }
/** * Sets <code>classes[nth].inner_class_info_index</code> to * the given index. */ public void setInnerClassIndex(int nth, int index) { X_Byte.write16bit(index, get(), nth * 8 + 2); }
/** * Returns <code>classes[nth].inner_class_info_index</code>. */ public int innerClassIndex(int nth) { return X_Byte.readU16bit(get(), nth * 8 + 2); }
/** * Sets <code>classes[nth].inner_name_index</code> to * the given index. */ public void setInnerNameIndex(int nth, int index) { X_Byte.write16bit(index, get(), nth * 8 + 6); }
/** * Returns <code>classes[nth].outer_class_info_index</code>. */ public int outerClassIndex(int nth) { return X_Byte.readU16bit(get(), nth * 8 + 4); }
/** * Constructs an empty InnerClasses attribute. * * @see #append(String, String, String, int) */ public InnerClassesAttribute(ConstPool cp) { super(cp, tag, new byte[2]); X_Byte.write16bit(0, get(), 0); }
/** * Sets <code>classes[nth].inner_class_access_flags</code> to * the given index. */ public void setAccessFlags(int nth, int flags) { X_Byte.write16bit(flags, get(), nth * 8 + 8); }