Eclipse CDT
Pre-release 3.0

org.eclipse.cdt.core.dom.ast
Interface IProblemBinding

All Superinterfaces:
Cloneable, IBinding, IScope, IType

public interface IProblemBinding
extends IBinding, IScope, IType

Interface for problem bindings.


Field Summary
static int LAST_PROBLEM
          Deprecated. 
static int SEMANTIC_AMBIGUOUS_LOOKUP
          Ambiguous lookup for given name.
static int SEMANTIC_BAD_SCOPE
          there was a problem creating the scope
static int SEMANTIC_CIRCULAR_INHERITANCE
          circular inheritance was detected for a class
static int SEMANTIC_DEFINITION_NOT_FOUND
          the definition for the class/function can not be found
static int SEMANTIC_INVALID_OVERLOAD
          Invalid overload of a particular name.
static int SEMANTIC_INVALID_REDECLARATION
          invalid re-declaration of the name
static int SEMANTIC_INVALID_REDEFINITION
          invalid redefinition of the name
static int SEMANTIC_INVALID_TEMPLATE_ARGUMENTS
           
static int SEMANTIC_INVALID_TYPE
          Invalid type provided Required attributes: A_TYPE_NAME
static int SEMANTIC_INVALID_USING
          Invalid using directive.
static int SEMANTIC_KNR_PARAMETER_DECLARATION_NOT_FOUND
          the declaration for the K&R style function parameter can not be found
static int SEMANTIC_LABEL_STATEMENT_NOT_FOUND
          a label statement can not be found to match a goto statement
static int SEMANTIC_MEMBER_DECLARATION_NOT_FOUND
           
static int SEMANTIC_NAME_NOT_FOUND
          Attempt to use a symbol that was not found.
static int SEMANTIC_RECURSION_IN_LOOKUP
           
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
EMPTY_BINDING_ARRAY
 
Fields inherited from interface org.eclipse.cdt.core.dom.ast.IType
EMPTY_TYPE_ARRAY, TYPE_MATCHER
 
Method Summary
 IASTNode getASTNode()
          get the AST node that this problem was created for
 IBinding[] getCandidateBindings()
          Returns bindings that were considered when resolving the node corresponding to this problem binding, but rejected for some reason.
 String getFileName()
          returns the file name this problem occurred in if known.
 int getID()
          Returns the problem id
 int getLineNumber()
          returns the line number for this problem if known
 String getMessage()
          Answer a localized, human-readable message string which describes the problem.
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IBinding
getLinkage, getName, getNameCharArray, getOwner, getScope
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IScope
find, getBinding, getBinding, getBindings, getBindings, getKind, getParent, getScopeName
 
Methods inherited from interface org.eclipse.cdt.core.dom.ast.IType
clone, isSameType
 

Field Detail

SEMANTIC_NAME_NOT_FOUND

static final int SEMANTIC_NAME_NOT_FOUND
Attempt to use a symbol that was not found. Require attributes: A_SYMBOL_NAME

See Also:
Constant Field Values

SEMANTIC_INVALID_OVERLOAD

static final int SEMANTIC_INVALID_OVERLOAD
Invalid overload of a particular name. Required attributes: A_SYMBOL_NAME

See Also:
Constant Field Values

SEMANTIC_INVALID_USING

static final int SEMANTIC_INVALID_USING
Invalid using directive. Required attributes: A_NAMESPACE_NAME

See Also:
Constant Field Values

SEMANTIC_AMBIGUOUS_LOOKUP

static final int SEMANTIC_AMBIGUOUS_LOOKUP
Ambiguous lookup for given name. Required attributes: A_SYMBOL_NAME

See Also:
Constant Field Values

SEMANTIC_INVALID_TYPE

static final int SEMANTIC_INVALID_TYPE
Invalid type provided Required attributes: A_TYPE_NAME

See Also:
Constant Field Values

SEMANTIC_CIRCULAR_INHERITANCE

static final int SEMANTIC_CIRCULAR_INHERITANCE
circular inheritance was detected for a class

See Also:
Constant Field Values

SEMANTIC_DEFINITION_NOT_FOUND

static final int SEMANTIC_DEFINITION_NOT_FOUND
the definition for the class/function can not be found

See Also:
Constant Field Values

SEMANTIC_KNR_PARAMETER_DECLARATION_NOT_FOUND

static final int SEMANTIC_KNR_PARAMETER_DECLARATION_NOT_FOUND
the declaration for the K&R style function parameter can not be found

See Also:
Constant Field Values

SEMANTIC_LABEL_STATEMENT_NOT_FOUND

static final int SEMANTIC_LABEL_STATEMENT_NOT_FOUND
a label statement can not be found to match a goto statement

See Also:
Constant Field Values

SEMANTIC_BAD_SCOPE

static final int SEMANTIC_BAD_SCOPE
there was a problem creating the scope

See Also:
Constant Field Values

SEMANTIC_INVALID_REDEFINITION

static final int SEMANTIC_INVALID_REDEFINITION
invalid redefinition of the name

See Also:
Constant Field Values

SEMANTIC_INVALID_REDECLARATION

static final int SEMANTIC_INVALID_REDECLARATION
invalid re-declaration of the name

See Also:
Constant Field Values

SEMANTIC_MEMBER_DECLARATION_NOT_FOUND

static final int SEMANTIC_MEMBER_DECLARATION_NOT_FOUND
See Also:
Constant Field Values

SEMANTIC_RECURSION_IN_LOOKUP

static final int SEMANTIC_RECURSION_IN_LOOKUP
See Also:
Constant Field Values

LAST_PROBLEM

@Deprecated
static final int LAST_PROBLEM
Deprecated. 
See Also:
Constant Field Values

SEMANTIC_INVALID_TEMPLATE_ARGUMENTS

static final int SEMANTIC_INVALID_TEMPLATE_ARGUMENTS
Since:
5.1
See Also:
Constant Field Values
Method Detail

getID

int getID()
Returns the problem id

Returns:
the problem id

getMessage

String getMessage()
Answer a localized, human-readable message string which describes the problem.

Returns:
a localized, human-readable message string which describes the problem

getASTNode

IASTNode getASTNode()
get the AST node that this problem was created for


getFileName

String getFileName()
returns the file name this problem occurred in if known.


getLineNumber

int getLineNumber()
returns the line number for this problem if known


getCandidateBindings

IBinding[] getCandidateBindings()
Returns bindings that were considered when resolving the node corresponding to this problem binding, but rejected for some reason.

Returns:
an array of candidate bindings. This method is experimental. Clients calling this method should expect possible changes.
Since:
5.1 experimental

Eclipse CDT
Pre-release 3.0

Copyright (c) IBM Corp. and others 2004. All Rights Reserved.