Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2009 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
 
 package org.eclipse.jdt.internal.core;
 
 import  org.eclipse.core.runtime.IProgressMonitor;

See also:
IField
 
 
 /* package */ class BinaryField extends BinaryMember implements IField {
 
 /*
  * Constructs a handle to the field with the given name in the specified type.
  */
 protected BinaryField(JavaElement parentString name) {
 	super(parentname);
 }
 public boolean equals(Object o) {
 	if (!(o instanceof BinaryField)) return false;
 	return super.equals(o);
 }
 	IBinaryAnnotation[] binaryAnnotations = info.getAnnotations();
 	return getAnnotations(binaryAnnotationsinfo.getTagBits());
 }
 /*
  * @see IField
  */
 public Object getConstant() throws JavaModelException {
 	return convertConstant(info.getConstant());
 }
 /*
  * @see IMember
  */
 public int getFlags() throws JavaModelException {
 	return info.getModifiers();
 }
 /*
  * @see IJavaElement
  */
 public int getElementType() {
 	return ;
 }
 /*
  * @see JavaElement#getHandleMemento()
  */
 protected char getHandleMementoDelimiter() {
 }
 public String getKey(boolean forceOpenthrows JavaModelException {
 	return getKey(thisforceOpen);
 }
 /*
  * @see IField
  */
 	char[] genericSignature = info.getGenericSignature();
 	if (genericSignature != null) {
 		return new String(ClassFile.translatedName(genericSignature));
 	}
 	return new String(ClassFile.translatedName(info.getTypeName()));
 }
 /* (non-Javadoc)
  * @see org.eclipse.jdt.core.IField#isEnumConstant()
  */public boolean isEnumConstant() throws JavaModelException {
 	return Flags.isEnum(getFlags());
 }
 /* (non-Javadoc)
  * @see org.eclipse.jdt.core.IField#isResolved()
  */
 public boolean isResolved() {
 	return false;
 }
 public JavaElement resolved(Binding binding) {
 	SourceRefElement resolvedHandle = new ResolvedBinaryField(this.this.new String(binding.computeUniqueKey()));
 	resolvedHandle.occurrenceCount = this.;
 	return resolvedHandle;
 }
/*
 * @private Debugging purposes
 */
protected void toStringInfo(int tabStringBuffer bufferObject infoboolean showResolvedInfo) {
	buffer.append(tabString(tab));
	if (info == null) {
		toStringName(buffer);
		buffer.append(" (not open)"); //$NON-NLS-1$
else if (info == ) {
		toStringName(buffer);
else {
		try {
			buffer.append(Signature.toString(getTypeSignature()));
			buffer.append(" "); //$NON-NLS-1$
			toStringName(buffer);
catch (JavaModelException e) {
			buffer.append("<JavaModelException in toString of " + getElementName()); //$NON-NLS-1$
		}
	}
public String getAttachedJavadoc(IProgressMonitor monitorthrows JavaModelException {
	JavadocContents javadocContents = ((BinaryTypethis.getDeclaringType()).getJavadocContents(monitor);
	if (javadocContents == nullreturn null;
	return javadocContents.getFieldDoc(this);
New to GrepCode? Check out our FAQ X