private boolean hasRuntimeVisibleAnnotation(HasAttribute element) { Attribute att = element.getAttributes().findFirst( AttRuntimeVisibleAnnotations.ATTRIBUTE_NAME); return (att != null && ((AttRuntimeVisibleAnnotations)att).getAnnotations().size()>0); } }
/** * Gets the exception table. * * @return {@code non-null;} the exception table */ public ByteCatchList getCatches() { return attCode.getCatches(); }
/** * Gets the bytecode array. * * @return {@code non-null;} the bytecode array */ public BytecodeArray getCode() { return attCode.getCode(); }
/** * Gets the maximum stack size. * * @return {@code >= 0;} the maximum stack size */ public int getMaxStack() { return attCode.getMaxStack(); }
/** * Sets the item at the given index. * * @param n {@code >= 0, < size();} which class * @param innerClass {@code non-null;} class this item refers to * @param outerClass {@code null-ok;} outer class that this class is a * member of, if any * @param innerName {@code null-ok;} original simple name of this class, * if not anonymous * @param accessFlags original declared access flags */ public void set(int n, CstType innerClass, CstType outerClass, CstString innerName, int accessFlags) { set0(n, new Item(innerClass, outerClass, innerName, accessFlags)); }
/** * Gets the indicated item. * * @param n {@code >= 0;} which item * @return {@code null-ok;} the indicated item */ public Item get(int n) { return (Item) get0(n); }
/** {@inheritDoc} */ @Override public int byteLength() { return 8 + innerClasses.size() * 8; }
/** * Gets the number of locals. * * @return {@code >= 0;} the number of locals */ public int getMaxLocals() { return attCode.getMaxLocals(); }
/** * Gets the exception table. * * @return {@code non-null;} the exception table */ public ByteCatchList getCatches() { return attCode.getCatches(); }
/** * Gets the bytecode array. * * @return {@code non-null;} the bytecode array */ public BytecodeArray getCode() { return attCode.getCode(); }
/** * Gets the maximum stack size. * * @return {@code >= 0;} the maximum stack size */ public int getMaxStack() { return attCode.getMaxStack(); }
/** * Gets the indicated item. * * @param n {@code >= 0;} which item * @return {@code null-ok;} the indicated item */ public Item get(int n) { return (Item) get0(n); }
/** {@inheritDoc} */ @Override public int byteLength() { return 8 + innerClasses.size() * 8; }
/** * Gets the exception table. * * @return {@code non-null;} the exception table */ public ByteCatchList getCatches() { return attCode.getCatches(); }
/** * Gets the bytecode array. * * @return {@code non-null;} the bytecode array */ public BytecodeArray getCode() { return attCode.getCode(); }
/** * Gets the maximum stack size. * * @return {@code >= 0;} the maximum stack size */ public int getMaxStack() { return attCode.getMaxStack(); }
/** * Gets the indicated item. * * @param n {@code >= 0;} which item * @return {@code null-ok;} the indicated item */ public Item get(int n) { return (Item) get0(n); }
/** * Gets the exception table. * * @return {@code non-null;} the exception table */ public ByteCatchList getCatches() { return attCode.getCatches(); }
/** * Gets the bytecode array. * * @return {@code non-null;} the bytecode array */ public BytecodeArray getCode() { return attCode.getCode(); }
/** * Gets the maximum stack size. * * @return {@code >= 0;} the maximum stack size */ public int getMaxStack() { return attCode.getMaxStack(); }