1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.core;
13 import net.sourceforge.phpdt.internal.compiler.env.IConstants;
16 * Element info for IMember elements.
18 /* package */abstract class MemberElementInfo extends SourceRefElementInfo {
20 * The modifiers associated with this member.
27 * The start position of this member's name in the its openable's buffer.
29 protected int nameStart = -1;
32 * The last position of this member's name in the its openable's buffer.
34 protected int nameEnd = -1;
39 protected char[] name;
42 * @see net.sourceforge.phpdt.internal.compiler.env.IGenericType#getModifiers()
43 * @see net.sourceforge.phpdt.internal.compiler.env.IGenericMethod#getModifiers()
44 * @see net.sourceforge.phpdt.internal.compiler.env.IGenericField#getModifiers()
46 public int getModifiers() {
51 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceType#getName()
53 public char[] getName() {
58 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceType#getNameSourceEnd()
59 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceMethod#getNameSourceEnd()
60 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceField#getNameSourceEnd()
62 public int getNameSourceEnd() {
67 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceType#getNameSourceStart()
68 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceMethod#getNameSourceStart()
69 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceField#getNameSourceStart()
71 public int getNameSourceStart() {
72 return this.nameStart;
75 protected void setFlags(int flags) {
80 * Sets this member's name
82 protected void setName(char[] name) {
87 * Sets the last position of this member's name, relative to its openable's
90 protected void setNameSourceEnd(int end) {
95 * Sets the start position of this member's name, relative to its openable's
98 protected void setNameSourceStart(int start) {
99 this.nameStart = start;