|
What this is
Other links
The source code/* * ArrayElementValue.java * * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun * Microsystems, Inc. All Rights Reserved. * * Contributor(s): Thomas Ball * * Version: $Revision: 1.2 $ */ package org.netbeans.modules.classfile; import java.io.DataInputStream; import java.io.IOException; import java.util.Arrays; /** * ArrayElementValue: the value portion of an annotation element that * is an array of ElementValue instances. * * @author Thomas Ball */ public final class ArrayElementValue extends ElementValue { ElementValue[] values; ArrayElementValue(ConstantPool pool, ElementValue[] values) { this.values = values; } /** * Returns the set of ElementValue instances for this component. */ public final ElementValue[] getValues() { return (ElementValue[])values.clone(); } public String toString() { StringBuffer sb = new StringBuffer("["); int n = values.length; for (int i = 0; i < n; i++) { sb.append(values[i]); if ((i + 1) < n) sb.append(','); } sb.append(']'); return sb.toString(); } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.