diff options
Diffstat (limited to 'org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ConstantPoolEntry2.java')
-rw-r--r-- | org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ConstantPoolEntry2.java | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ConstantPoolEntry2.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ConstantPoolEntry2.java new file mode 100644 index 000000000..c6c968625 --- /dev/null +++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/ConstantPoolEntry2.java @@ -0,0 +1,66 @@ +/******************************************************************************* + * Copyright (c) 2000, 2011 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.util; + +import org.eclipse.jdt.core.util.IConstantPoolEntry2; + +/** + * Default implementation of IConstantPoolEntry + * + * @since 2.0 + */ +public class ConstantPoolEntry2 extends ConstantPoolEntry implements IConstantPoolEntry2 { + + private int descriptorIndex; + private int referenceKind; + private int referenceIndex; + private int bootstrapMethodAttributeIndex; + + public int getDescriptorIndex() { + return this.descriptorIndex; + } + + public int getReferenceKind() { + return this.referenceKind; + } + + public int getReferenceIndex() { + return this.referenceIndex; + } + + public int getBootstrapMethodAttributeIndex() { + return this.bootstrapMethodAttributeIndex; + } + + public void setDescriptorIndex(int descriptorIndex) { + this.descriptorIndex = descriptorIndex; + } + + public void setReferenceKind(int referenceKind) { + this.referenceKind = referenceKind; + } + + public void setReferenceIndex(int referenceIndex) { + this.referenceIndex = referenceIndex; + } + + public void setBootstrapMethodAttributeIndex(int bootstrapMethodAttributeIndex) { + this.bootstrapMethodAttributeIndex = bootstrapMethodAttributeIndex; + } + + public void reset() { + super.reset(); + this.descriptorIndex = 0; + this.referenceKind = 0; + this.referenceIndex = 0; + this.bootstrapMethodAttributeIndex = 0; + } +} |