org.eclipse.cdt.core.model
Interface IInclude
- All Superinterfaces:
- ICElement, ISourceManipulation, ISourceReference
- public interface IInclude
- extends ICElement, ISourceReference, ISourceManipulation
Represents an include declaration in a C translation unit.
Fields inherited from interface org.eclipse.cdt.core.model.ICElement |
C_ARCHIVE, C_BINARY, C_CCONTAINER, C_CLASS, C_CLASS_CTOR, C_CLASS_DECLARATION, C_CLASS_DTOR, C_ENUMERATION, C_ENUMERATOR, C_FIELD, C_FUNCTION, C_FUNCTION_DECLARATION, C_INCLUDE, C_MACRO, C_METHOD, C_METHOD_DECLARATION, C_MODEL, C_NAMESPACE, C_PROJECT, C_STORAGE_EXTERN, C_STORAGE_STATIC, C_STRUCT, C_STRUCT_DECLARATION, C_TEMPLATE_CLASS, C_TEMPLATE_CLASS_DECLARATION, C_TEMPLATE_FUNCTION, C_TEMPLATE_FUNCTION_DECLARATION, C_TEMPLATE_METHOD, C_TEMPLATE_METHOD_DECLARATION, C_TEMPLATE_STRUCT, C_TEMPLATE_STRUCT_DECLARATION, C_TEMPLATE_UNION, C_TEMPLATE_UNION_DECLARATION, C_TEMPLATE_VARIABLE, C_TYPEDEF, C_UNION, C_UNION_DECLARATION, C_UNIT, C_UNKNOWN_DECLARATION, C_USING, C_VARIABLE, C_VARIABLE_DECLARATION, C_VARIABLE_LOCAL, C_VCONTAINER, CPP_FRIEND, CPP_PRIVATE, CPP_PROTECTED, CPP_PUBLIC |
Methods inherited from interface org.eclipse.cdt.core.model.ICElement |
accept, exists, getAncestor, getCModel, getCProject, getElementName, getElementType, getParent, getPath, getResource, getUnderlyingResource, isReadOnly, isStructureKnown |
getIncludeName
public String getIncludeName()
- Returns the name that of the included file.
For example, for the statement
"#include
,
this returns "stdio.h"
.
isStandard
public boolean isStandard()
- Returns whether the included was search on "standard places" like /usr/include first .
An include is standard if it starts with
"\<"
.
For example, "#include \"
returns true and
"#include "foobar.h"
returns false.
getFullFileName
public String getFullFileName()
isLocal
public boolean isLocal()
isActive
public boolean isActive()
- Returns:
- whether this include directive is in active code, ie. not hidden
by conditional compilation
isResolved
public boolean isResolved()
- Returns:
- whether this include directive was resolved and followed.
Copyright (c) IBM Corp. and others 2004. All Rights Reserved.