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
30 protected int nameStart= -1;
33 * The last position of this member's name in the its
36 protected int nameEnd= -1;
41 protected char[] name;
43 * @see net.sourceforge.phpdt.internal.compiler.env.IGenericType#getModifiers()
44 * @see net.sourceforge.phpdt.internal.compiler.env.IGenericMethod#getModifiers()
45 * @see net.sourceforge.phpdt.internal.compiler.env.IGenericField#getModifiers()
47 public int getModifiers() {
51 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceType#getName()
53 public char[] getName() {
57 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceType#getNameSourceEnd()
58 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceMethod#getNameSourceEnd()
59 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceField#getNameSourceEnd()
61 public int getNameSourceEnd() {
65 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceType#getNameSourceStart()
66 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceMethod#getNameSourceStart()
67 * @see net.sourceforge.phpdt.internal.compiler.env.ISourceField#getNameSourceStart()
69 public int getNameSourceStart() {
70 return this.nameStart;
72 protected void setFlags(int flags) {
76 * Sets this member's name
78 protected void setName(char[] name) {
82 * Sets the last position of this member's name, relative
83 * to its openable's source buffer.
85 protected void setNameSourceEnd(int end) {
89 * Sets the start position of this member's name, relative
90 * to its openable's source buffer.
92 protected void setNameSourceStart(int start) {
93 this.nameStart= start;