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()
CAstEntitygetKind in interface CAstEntitypublic String getName()
CAstEntitygetName in interface CAstEntitypublic String getSignature()
CAstEntitygetSignature in interface CAstEntitypublic String[] getArgumentNames()
CAstEntitygetArgumentNames in interface CAstEntitypublic CAstNode[] getArgumentDefaults()
CAstEntitygetArgumentDefaults in interface CAstEntitypublic int getArgumentCount()
CAstEntitygetArgumentCount in interface CAstEntitypublic Map<CAstNode,Collection<CAstEntity>> getAllScopedEntities()
CAstEntitygetAllScopedEntities in interface CAstEntitypublic Iterator<CAstEntity> getScopedEntities(CAstNode construct)
CAstEntitygetScopedEntities in interface CAstEntitypublic CAstNode getAST()
CAstEntitygetAST in interface CAstEntitypublic CAstControlFlowMap getControlFlow()
CAstEntitygetControlFlow in interface CAstEntitypublic CAstSourcePositionMap getSourceMap()
CAstEntitygetSourceMap in interface CAstEntitypublic CAstSourcePositionMap.Position getPosition()
CAstEntitygetPosition in interface CAstEntitypublic CAstNodeTypeMap getNodeTypeMap()
CAstEntitygetNodeTypeMap in interface CAstEntitypublic Collection<CAstQualifier> getQualifiers()
CAstEntitygetQualifiers in interface CAstEntitypublic CAstType getType()
CAstEntitygetType in interface CAstEntitypublic Collection<CAstAnnotation> getAnnotations()
CAstEntitygetAnnotations in interface CAstEntity