public abstract class AbstractEntity extends java.lang.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) |
java.util.Map<CAstNode,java.util.Collection<CAstEntity>> |
getAllScopedEntities()
Some programming language constructs have a lexical structure.
|
java.util.Collection<CAstAnnotation> |
getAnnotations()
Returns the set of any annotations this entity may have
|
CAstSourcePositionMap.Position |
getPosition()
The source position of this entity.
|
java.util.Iterator<CAstEntity> |
getScopedEntities(CAstNode construct)
Some programming language constructs have a lexical structure.
|
java.lang.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, getNamePosition, getNodeTypeMap, getOriginal, getPosition, getQualifiers, getSourceMap, getTypepublic java.util.Map<CAstNode,java.util.Collection<CAstEntity>> getAllScopedEntities()
CAstEntitygetAllScopedEntities in interface CAstEntitypublic java.lang.String getSignature()
CAstEntitygetSignature in interface CAstEntitypublic java.util.Collection<CAstAnnotation> getAnnotations()
CAstEntitygetAnnotations in interface CAstEntitypublic void setPosition(CAstSourcePositionMap.Position pos)
public CAstSourcePositionMap.Position getPosition()
CAstEntitygetPosition in interface CAstEntitypublic java.util.Iterator<CAstEntity> getScopedEntities(CAstNode construct)
CAstEntityEnclosed entities not induced by a specific AST node are mapped by the construct 'null'.
getScopedEntities in interface CAstEntitypublic void addScopedEntity(CAstNode construct, CAstEntity child)