/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }
/** * Constructs an instance. * * @param method {@code non-null;} constant for the method * @param accessFlags access flags * @param code {@code null-ok;} code for the method, if it is neither * {@code abstract} nor {@code native} * @param throwsList {@code non-null;} list of possibly-thrown exceptions, * just used in generating debugging output (listings) */ public EncodedMethod(CstMethodRef method, int accessFlags, DalvCode code, TypeList throwsList) { super(accessFlags); if (method == null) { throw new NullPointerException("method == null"); } this.method = method; if (code == null) { this.code = null; } else { boolean isStatic = (accessFlags & AccessFlags.ACC_STATIC) != 0; this.code = new CodeItem(method, code, isStatic, throwsList); } }