/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* This class represents a binary member
*
* WARNING: The contents of this source file are not part of any
* supported API. Code that depends on them does so at its own risk:
* they are subject to change or removal without notice.
*/
public final
/**
* Constructor
*/
// Was it compiled as deprecated?
this.modifiers |= M_DEPRECATED;
}
// Was it synthesized by the compiler?
this.modifiers |= M_SYNTHETIC;
}
}
/**
* Constructor for an inner class.
*/
super(innerClass);
}
/**
* Inline allowed (currently only allowed for the constructor of Object).
*/
// It is possible for 'getSuperClass()' to return null due to error
// recovery from cyclic inheritace. Can this cause a problem here?
}
/**
* Get arguments
*/
return v;
}
return null;
}
/**
* Get exceptions
*/
return exp;
}
return new ClassDeclaration[0];
}
try {
// JVM 4.7.5 Exceptions_attribute.number_of_exceptions
int n = in.readUnsignedShort();
exp = new ClassDeclaration[n];
for (int i = 0 ; i < n ; i++) {
// JVM 4.7.5 Exceptions_attribute.exception_index_table[]
}
return exp;
} catch (IOException e) {
throw new CompilerError(e);
}
}
/**
* Get documentation
*/
if (documentation != null) {
return documentation;
}
return null;
}
try {
} catch (IOException e) {
throw new CompilerError(e);
}
}
/**
* Check if constant: Will it inline away to a constant?
* This override is needed to solve bug 4128266. It is also
* integral to the solution of 4119776.
*/
private boolean isConstantCache = false;
private boolean isConstantCached = false;
public boolean isConstant() {
if (!isConstantCached) {
&& isVariable()
isConstantCached = true;
}
return isConstantCache;
}
/**
* Get the value
*/
if (isMethod()) {
return null;
}
if (!isFinal()) {
return null;
}
return (Expression)getValue();
}
return null;
}
try {
// JVM 4.7.3 ConstantValue.constantvalue_index
Object obj = cpool.getValue(new DataInputStream(new ByteArrayInputStream(data)).readUnsignedShort());
switch (getType().getTypeCode()) {
case TC_BOOLEAN:
break;
case TC_BYTE:
case TC_SHORT:
case TC_CHAR:
case TC_INT:
break;
case TC_LONG:
break;
case TC_FLOAT:
break;
case TC_DOUBLE:
break;
case TC_CLASS:
break;
}
return (Expression)getValue();
} catch (IOException e) {
throw new CompilerError(e);
}
}
/**
* Get a field attribute
*/
}
}
return null;
}
boolean succeed = false;
succeed = true;
}
succeed = true;
}
}
}
}
}
return succeed;
}
/*
* Add an attribute to a field
*/
// Make sure that the new attribute is in the constant pool
}
}