/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param parameterAnnotations {@code non-null;} the annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) { super(attributeName); try { if (parameterAnnotations.isMutable()) { throw new MutabilityException( "parameterAnnotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("parameterAnnotations == null"); } this.parameterAnnotations = parameterAnnotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param parameterAnnotations {@code non-null;} the annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) { super(attributeName); try { if (parameterAnnotations.isMutable()) { throw new MutabilityException( "parameterAnnotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("parameterAnnotations == null"); } this.parameterAnnotations = parameterAnnotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param parameterAnnotations {@code non-null;} the annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) { super(attributeName); try { if (parameterAnnotations.isMutable()) { throw new MutabilityException( "parameterAnnotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("parameterAnnotations == null"); } this.parameterAnnotations = parameterAnnotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param parameterAnnotations {@code non-null;} the annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) { super(attributeName); try { if (parameterAnnotations.isMutable()) { throw new MutabilityException( "parameterAnnotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("parameterAnnotations == null"); } this.parameterAnnotations = parameterAnnotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param parameterAnnotations {@code non-null;} the annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) { super(attributeName); try { if (parameterAnnotations.isMutable()) { throw new MutabilityException( "parameterAnnotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("parameterAnnotations == null"); } this.parameterAnnotations = parameterAnnotations; this.byteLength = byteLength; }
/** * Constructs an instance. * * @param attributeName {@code non-null;} the name of the attribute * @param parameterAnnotations {@code non-null;} the annotations * @param byteLength {@code >= 0;} attribute data length in the original * classfile (not including the attribute header) */ public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) { super(attributeName); try { if (parameterAnnotations.isMutable()) { throw new MutabilityException( "parameterAnnotations.isMutable()"); } } catch (NullPointerException ex) { // Translate the exception. throw new NullPointerException("parameterAnnotations == null"); } this.parameterAnnotations = parameterAnnotations; this.byteLength = byteLength; }