1 /*******************************************************************************
2 * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.lookup;
13 import net.sourceforge.phpdt.internal.compiler.util.CharOperation;
15 public final class MemberTypeBinding extends NestedTypeBinding {
16 public MemberTypeBinding(char[][] compoundName, ClassScope scope, SourceTypeBinding enclosingType) {
17 super(compoundName, scope, enclosingType);
18 this.tagBits |= MemberTypeMask;
20 void checkSyntheticArgsAndFields() {
21 if (this.isStatic()) return;
22 if (this.isInterface()) return;
23 this.addSyntheticArgumentAndField(this.enclosingType);
25 /* Answer the receiver's constant pool name.
27 * NOTE: This method should only be used during/after code gen.
30 public char[] constantPoolName() /* java/lang/Object */ {
31 if (constantPoolName != null)
32 return constantPoolName;
34 return constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), sourceName, '$');
36 public String toString() {
37 return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$