X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/lookup/MemberTypeBinding.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/lookup/MemberTypeBinding.java index 1d3d67f..2f35672 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/lookup/MemberTypeBinding.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/lookup/MemberTypeBinding.java @@ -13,27 +13,35 @@ package net.sourceforge.phpdt.internal.compiler.lookup; import net.sourceforge.phpdt.core.compiler.CharOperation; public final class MemberTypeBinding extends NestedTypeBinding { -public MemberTypeBinding(char[][] compoundName, ClassScope scope, SourceTypeBinding enclosingType) { - super(compoundName, scope, enclosingType); - this.tagBits |= MemberTypeMask; -} -void checkSyntheticArgsAndFields() { - if (this.isStatic()) return; - if (this.isInterface()) return; - this.addSyntheticArgumentAndField(this.enclosingType); -} -/* Answer the receiver's constant pool name. -* -* NOTE: This method should only be used during/after code gen. -*/ + public MemberTypeBinding(char[][] compoundName, ClassScope scope, + SourceTypeBinding enclosingType) { + super(compoundName, scope, enclosingType); + this.tagBits |= MemberTypeMask; + } -public char[] constantPoolName() /* java/lang/Object */ { - if (constantPoolName != null) - return constantPoolName; + void checkSyntheticArgsAndFields() { + if (this.isStatic()) + return; + if (this.isInterface()) + return; + this.addSyntheticArgumentAndField(this.enclosingType); + } - return constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), sourceName, '$'); -} -public String toString() { - return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ -} + /* + * Answer the receiver's constant pool name. + * + * NOTE: This method should only be used during/after code gen. + */ + + public char[] constantPoolName() /* java/lang/Object */{ + if (constantPoolName != null) + return constantPoolName; + + return constantPoolName = CharOperation.concat(enclosingType() + .constantPoolName(), sourceName, '$'); + } + + public String toString() { + return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ + } }