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;
14 *Element info for IMember elements.
16 /* package */ abstract class MemberElementInfo extends SourceRefElementInfo {
18 * The modifiers associated with this member.
25 * The start position of this member's name in the its
28 protected int nameStart= -1;
31 * The last position of this member's name in the its
34 protected int nameEnd= -1;
39 protected char[] name;
41 * @see org.eclipse.jdt.internal.compiler.env.IGenericType#getModifiers()
42 * @see org.eclipse.jdt.internal.compiler.env.IGenericMethod#getModifiers()
43 * @see org.eclipse.jdt.internal.compiler.env.IGenericField#getModifiers()
45 public int getModifiers() {
49 * @see org.eclipse.jdt.internal.compiler.env.ISourceType#getName()
51 public char[] getName() {
55 * @see org.eclipse.jdt.internal.compiler.env.ISourceType#getNameSourceEnd()
56 * @see org.eclipse.jdt.internal.compiler.env.ISourceMethod#getNameSourceEnd()
57 * @see org.eclipse.jdt.internal.compiler.env.ISourceField#getNameSourceEnd()
59 public int getNameSourceEnd() {
63 * @see org.eclipse.jdt.internal.compiler.env.ISourceType#getNameSourceStart()
64 * @see org.eclipse.jdt.internal.compiler.env.ISourceMethod#getNameSourceStart()
65 * @see org.eclipse.jdt.internal.compiler.env.ISourceField#getNameSourceStart()
67 public int getNameSourceStart() {
68 return this.nameStart;
70 protected void setFlags(int flags) {
74 * Sets this member's name
76 protected void setName(char[] name) {
80 * Sets the last position of this member's name, relative
81 * to its openable's source buffer.
83 protected void setNameSourceEnd(int end) {
87 * Sets the start position of this member's name, relative
88 * to its openable's source buffer.
90 protected void setNameSourceStart(int start) {
91 this.nameStart= start;