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, wait
getArgumentCount, getArgumentDefaults, getArgumentNames, getAST, getControlFlow, getKind, getName, getNodeTypeMap, getQualifiers, getSourceMap, getType
public Map<CAstNode,Collection<CAstEntity>> getAllScopedEntities()
CAstEntity
getAllScopedEntities
in interface CAstEntity
public String getSignature()
CAstEntity
getSignature
in interface CAstEntity
public Collection<CAstAnnotation> getAnnotations()
CAstEntity
getAnnotations
in interface CAstEntity
public void setPosition(CAstSourcePositionMap.Position pos)
public CAstSourcePositionMap.Position getPosition()
CAstEntity
getPosition
in interface CAstEntity
public Iterator<CAstEntity> getScopedEntities(CAstNode construct)
CAstEntity
getScopedEntities
in interface CAstEntity
public void addScopedEntity(CAstNode construct, CAstEntity child)