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.compiler.lookup;
13 import net.sourceforge.phpdt.core.compiler.CharOperation;
15 public final class MemberTypeBinding extends NestedTypeBinding {
16 public MemberTypeBinding(char[][] compoundName, ClassScope scope,
17 SourceTypeBinding enclosingType) {
18 super(compoundName, scope, enclosingType);
19 this.tagBits |= MemberTypeMask;
22 void checkSyntheticArgsAndFields() {
25 if (this.isInterface())
27 this.addSyntheticArgumentAndField(this.enclosingType);
31 * Answer the receiver's constant pool name.
33 * NOTE: This method should only be used during/after code gen.
36 public char[] constantPoolName() /* java/lang/Object */{
37 if (constantPoolName != null)
38 return constantPoolName;
40 return constantPoolName = CharOperation.concat(enclosingType()
41 .constantPoolName(), sourceName, '$');
44 public String toString() {
45 return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$