public class DelegatingEntity 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 |
---|
DelegatingEntity(CAstEntity base) |
Modifier and Type | Method and Description |
---|---|
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
|
int |
getArgumentCount()
Some programming language constructs have a specific number of
arguments.
|
CAstNode[] |
getArgumentDefaults()
Some programming language constructs allow arguments to have default
values.
|
String[] |
getArgumentNames()
Some programming language constructs have named arguments.
|
CAstNode |
getAST()
The CAPA AST of this entity.
|
CAstControlFlowMap |
getControlFlow()
The control flow map for the CAPA AST of this entity.
|
int |
getKind()
What kind of entity is this? The answer should be one of the
constants in this file.
|
String |
getName()
Some programming language constructs have names.
|
CAstNodeTypeMap |
getNodeTypeMap()
The map from CAstNodes to types.
|
CAstSourcePositionMap.Position |
getPosition()
The source position of this entity.
|
Collection<CAstQualifier> |
getQualifiers()
Returns an Iterator over the qualifiers of the given entity, if it has
any, e.g., "final", "private".
|
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.
|
CAstSourcePositionMap |
getSourceMap()
The map of CAstNodes to source positions for the CAPA AST of this entity.
|
CAstType |
getType()
The CAst type of this entity.
|
public DelegatingEntity(CAstEntity base)
public int getKind()
CAstEntity
getKind
in interface CAstEntity
public String getName()
CAstEntity
getName
in interface CAstEntity
public String getSignature()
CAstEntity
getSignature
in interface CAstEntity
public String[] getArgumentNames()
CAstEntity
getArgumentNames
in interface CAstEntity
public CAstNode[] getArgumentDefaults()
CAstEntity
getArgumentDefaults
in interface CAstEntity
public int getArgumentCount()
CAstEntity
getArgumentCount
in interface CAstEntity
public Map<CAstNode,Collection<CAstEntity>> getAllScopedEntities()
CAstEntity
getAllScopedEntities
in interface CAstEntity
public Iterator<CAstEntity> getScopedEntities(CAstNode construct)
CAstEntity
getScopedEntities
in interface CAstEntity
public CAstNode getAST()
CAstEntity
getAST
in interface CAstEntity
public CAstControlFlowMap getControlFlow()
CAstEntity
getControlFlow
in interface CAstEntity
public CAstSourcePositionMap getSourceMap()
CAstEntity
getSourceMap
in interface CAstEntity
public CAstSourcePositionMap.Position getPosition()
CAstEntity
getPosition
in interface CAstEntity
public CAstNodeTypeMap getNodeTypeMap()
CAstEntity
getNodeTypeMap
in interface CAstEntity
public Collection<CAstQualifier> getQualifiers()
CAstEntity
getQualifiers
in interface CAstEntity
public CAstType getType()
CAstEntity
getType
in interface CAstEntity
public Collection<CAstAnnotation> getAnnotations()
CAstEntity
getAnnotations
in interface CAstEntity