org.eclipse.jdt.internal.compiler.env
类 NameEnvironmentAnswer

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer

public class NameEnvironmentAnswer
extends Object


构造方法摘要
NameEnvironmentAnswer(IBinaryType binaryType, AccessRestriction accessRestriction)
           
NameEnvironmentAnswer(ICompilationUnit compilationUnit, AccessRestriction accessRestriction)
           
NameEnvironmentAnswer(ISourceType[] sourceTypes, AccessRestriction accessRestriction)
           
 
方法摘要
 AccessRestriction getAccessRestriction()
          Returns the associated access restriction, or null if none.
 IBinaryType getBinaryType()
          Answer the resolved binary form for the type or null if the receiver represents a compilation unit or source type.
 ICompilationUnit getCompilationUnit()
          Answer the compilation unit or null if the receiver represents a binary or source type.
 ISourceType[] getSourceTypes()
          Answer the unresolved source forms for the type or null if the receiver represents a compilation unit or binary type.
 boolean ignoreIfBetter()
           
 boolean isBetter(NameEnvironmentAnswer otherAnswer)
           
 boolean isBinaryType()
          Answer whether the receiver contains the resolved binary form of the type.
 boolean isCompilationUnit()
          Answer whether the receiver contains the compilation unit which defines the type.
 boolean isSourceType()
          Answer whether the receiver contains the unresolved source form of the type.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

NameEnvironmentAnswer

public NameEnvironmentAnswer(IBinaryType binaryType,
                             AccessRestriction accessRestriction)

NameEnvironmentAnswer

public NameEnvironmentAnswer(ICompilationUnit compilationUnit,
                             AccessRestriction accessRestriction)

NameEnvironmentAnswer

public NameEnvironmentAnswer(ISourceType[] sourceTypes,
                             AccessRestriction accessRestriction)
方法详细信息

getAccessRestriction

public AccessRestriction getAccessRestriction()
Returns the associated access restriction, or null if none.


getBinaryType

public IBinaryType getBinaryType()
Answer the resolved binary form for the type or null if the receiver represents a compilation unit or source type.


getCompilationUnit

public ICompilationUnit getCompilationUnit()
Answer the compilation unit or null if the receiver represents a binary or source type.


getSourceTypes

public ISourceType[] getSourceTypes()
Answer the unresolved source forms for the type or null if the receiver represents a compilation unit or binary type. Multiple source forms can be answered in case the originating compilation unit did contain several type at once. Then the first type is guaranteed to be the requested type.


isBinaryType

public boolean isBinaryType()
Answer whether the receiver contains the resolved binary form of the type.


isCompilationUnit

public boolean isCompilationUnit()
Answer whether the receiver contains the compilation unit which defines the type.


isSourceType

public boolean isSourceType()
Answer whether the receiver contains the unresolved source form of the type.


ignoreIfBetter

public boolean ignoreIfBetter()

isBetter

public boolean isBetter(NameEnvironmentAnswer otherAnswer)


Copyright © 2013. All Rights Reserved.