public abstract class AbstractEntity extends Object implements CAstEntity
FIELD_ENTITY, FILE_ENTITY, FUNCTION_ENTITY, GLOBAL_ENTITY, MACRO_ENTITY, RULE_ENTITY, SCRIPT_ENTITY, SUB_LANGUAGE_BASE, TYPE_ENTITY| Constructor and Description |
|---|
AbstractEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
addScopedEntity(CAstNode construct,
CAstEntity child) |
Map<CAstNode,Collection<CAstEntity>> |
getAllScopedEntities()
Some programming language constructs have a lexical structure.
|
Collection<CAstAnnotation> |
getAnnotations()
Returns the set of any annotations this entity may have
|
CAstSourcePositionMap.Position |
getPosition()
The source position of this entity.
|
Iterator<CAstEntity> |
getScopedEntities(CAstNode construct)
Some programming language constructs have a lexical structure.
|
String |
getSignature()
Some programming language constructs have signatures, which are like
names but usually have some detail to distinguish the construct from
others with the same name.
|
void |
setPosition(CAstSourcePositionMap.Position pos) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgumentCount, getArgumentDefaults, getArgumentNames, getAST, getControlFlow, getKind, getName, getNodeTypeMap, getQualifiers, getSourceMap, getTypepublic Map<CAstNode,Collection<CAstEntity>> getAllScopedEntities()
CAstEntitygetAllScopedEntities in interface CAstEntitypublic String getSignature()
CAstEntitygetSignature in interface CAstEntitypublic Collection<CAstAnnotation> getAnnotations()
CAstEntitygetAnnotations in interface CAstEntitypublic void setPosition(CAstSourcePositionMap.Position pos)
public CAstSourcePositionMap.Position getPosition()
CAstEntitygetPosition in interface CAstEntitypublic Iterator<CAstEntity> getScopedEntities(CAstNode construct)
CAstEntitygetScopedEntities in interface CAstEntitypublic void addScopedEntity(CAstNode construct, CAstEntity child)