CsEntity Class Reference
Abstract Entity class. Base class for all entity classes.
More...
List of all members.
Classes |
struct | entity_name_options |
| Entity name generation options. More...
|
Public Member Functions |
| CsEntity (cs_entity e, cs_entity_access ac, string name, AssemblyEntity assembly) |
| CsEntity (cs_entity e, cs_entity_access ac, string name) |
| CsEntity (cs_entity e, cs_entity_access ac) |
int | CompareTo (object obj) |
int | CompareTo (CsEntity rhs) |
abstract void | visit (ICsEntityVisitor visitor) |
bool | isNamespaceOrType () |
| Returns true if it is a namespace or type entity.
|
bool | isNamespaceOrTypeRef () |
| Returns true if it is a namespace or type reference entity.
|
bool | isType () |
| Returns true if entity is type.
|
bool | isEnum () |
| Returns true if entity is enum.
|
bool | isTypeRef () |
| Returns true if it is a type reference entity.
|
bool | isNamespace () |
| Returns true if it is a namespace entity.
|
bool | isField () |
| Returns true if it is a field entity.
|
bool | isMethod () |
| Returns true if it is a method entity.
|
bool | isProperty () |
| Returns true if it is a property entity.
|
bool | isGenericParam () |
| Returns true if it is a generic parameter entity.
|
bool | isVirtualMethod () |
| Returns true if it is a virtual method entity.
|
bool | isOverride () |
| Returns true if it is a override entity.
|
virtual void | setStatic (bool flag) |
virtual bool | isStatic () |
| Returns true if it is a static entity.
|
void | setBaseClassResolved () |
bool | isBaseClassResolved () |
void | setPartial (bool flag) |
bool | isPartial () |
| Returns true if it is a partial entity.
|
bool | isEffectiveBaseEvaluated () |
void | setEffectiveBaseEvaluated () |
bool | isGenerated () |
bool | isCompilerAttribute () |
bool | isRecursiveInheritance () |
void | setRecursiveInheritance () |
bool | isBadTypeParameters () |
bool | isChecked () |
void | setChecked () |
bool | isLocalEntity () |
bool | isSkip () |
void | setSkip (bool flag) |
bool | isAnonymousType () |
| Returns true if it is a anonymous type entity.
|
void | setAnonymousType (bool flag) |
bool | isSnippetEntity () |
void | setSnippetEntity (bool flag) |
bool | isDefinedInExternalAssembly () |
| Returns true if entity defined in external assembly (for types, methods, fields, properties, events only).
|
string | getNameAsString (entity_name_options options) |
| Generates entity name.
|
Static Public Member Functions |
static bool | operator< (CsEntity lhs, CsEntity rhs) |
static bool | operator> (CsEntity lhs, CsEntity rhs) |
static bool | isParentChild (CsEntity parent, CsEntity child) |
Public Attributes |
cs_entity | e |
| Entity type enumeration.
|
cs_entity_access | access |
| Access to entity.
|
ushort | pflags |
| Parser flags (for internal purpose only).
|
string | name |
| Entity name. Name maybe compound (like "a.b.c") for explicit interface implementation entitites. Name is null for global namespace, blocks and unresolved explicit interface implementation entitites.
|
uint | mflags |
| Metadata flags (imported from assembly or generated by parser).
|
CsEntity | parent |
| Outer scope of entity. Non-null for all entities except global namespace.
|
AssemblyEntity | assembly |
| Assembly or project.
|
object | user_data |
| User data.
|
Detailed Description
Abstract Entity class. Base class for all entity classes.
Constructor & Destructor Documentation
Member Function Documentation
int CompareTo |
( |
object |
obj |
) |
|
Returns true if it is a anonymous type entity.
bool isBadTypeParameters |
( |
|
) |
|
bool isBaseClassResolved |
( |
|
) |
|
bool isCompilerAttribute |
( |
|
) |
|
bool isDefinedInExternalAssembly |
( |
|
) |
|
Returns true if entity defined in external assembly (for types, methods, fields, properties, events only).
bool isEffectiveBaseEvaluated |
( |
|
) |
|
Returns true if entity is enum.
Returns true if it is a field entity.
Returns true if it is a generic parameter entity.
Returns true if it is a method entity.
Returns true if it is a namespace entity.
bool isNamespaceOrType |
( |
|
) |
|
Returns true if it is a namespace or type entity.
bool isNamespaceOrTypeRef |
( |
|
) |
|
Returns true if it is a namespace or type reference entity.
Returns true if it is a override entity.
Returns true if it is a partial entity.
Returns true if it is a property entity.
bool isRecursiveInheritance |
( |
|
) |
|
virtual bool isStatic |
( |
|
) |
[virtual] |
Returns true if entity is type.
Returns true if it is a type reference entity.
Returns true if it is a virtual method entity.
void setAnonymousType |
( |
bool |
flag |
) |
|
void setBaseClassResolved |
( |
|
) |
|
void setEffectiveBaseEvaluated |
( |
|
) |
|
void setPartial |
( |
bool |
flag |
) |
|
void setRecursiveInheritance |
( |
|
) |
|
void setSkip |
( |
bool |
flag |
) |
|
void setSnippetEntity |
( |
bool |
flag |
) |
|
virtual void setStatic |
( |
bool |
flag |
) |
[virtual] |
Implemented in CsScopeEntity, CsEntityNamespace, CsEntityGenericParam, CsEntityBlock, CsEntityFormalParameter, CsEntityMethod, CsEntityClass, CsEntityStruct, CsEntityInterface, CsEntityEnum, CsEntityConstant, CsEntityVariable, CsEntityBlockVariable, CsEntityDelegate, CsEntityProperty, CsEntityEvent, CsEntityLocalConstant, CsEntityLocalVariable, and CsEntityAnonymousMethod.
Member Data Documentation
Metadata flags (imported from assembly or generated by parser).
Entity name. Name maybe compound (like "a.b.c") for explicit interface implementation entitites. Name is null for global namespace, blocks and unresolved explicit interface implementation entitites.
Outer scope of entity. Non-null for all entities except global namespace.
Parser flags (for internal purpose only).
|