public class DelegatingEntity 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 |
|---|
DelegatingEntity(CAstEntity base) |
| Modifier and Type | Method and Description |
|---|---|
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
|
int |
getArgumentCount()
Some programming language constructs have a specific number of arguments.
|
CAstNode[] |
getArgumentDefaults()
Some programming language constructs allow arguments to have default values.
|
java.lang.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.
|
java.lang.String |
getName()
Some programming language constructs have names.
|
CAstSourcePositionMap.Position |
getNamePosition()
The source position of the token denoting this entity's name.
|
CAstNodeTypeMap |
getNodeTypeMap()
The map from CAstNodes to types.
|
CAstEntity |
getOriginal()
Allow finding original entity after rewrites
|
CAstSourcePositionMap.Position |
getPosition()
The source position of this entity.
|
CAstSourcePositionMap.Position |
getPosition(int arg)
The source position of argument 'arg' this entity, if any;
|
java.util.Collection<CAstQualifier> |
getQualifiers()
Returns an Iterator over the qualifiers of the given entity, if it has any, e.g., "final",
"private".
|
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.
|
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 CAstEntity getOriginal()
CAstEntitygetOriginal in interface CAstEntitypublic int getKind()
CAstEntitygetKind in interface CAstEntitypublic java.lang.String getName()
CAstEntitygetName in interface CAstEntitypublic java.lang.String getSignature()
CAstEntitygetSignature in interface CAstEntitypublic java.lang.String[] getArgumentNames()
CAstEntitygetArgumentNames in interface CAstEntitypublic CAstNode[] getArgumentDefaults()
CAstEntitygetArgumentDefaults in interface CAstEntitypublic int getArgumentCount()
CAstEntitygetArgumentCount in interface CAstEntitypublic java.util.Map<CAstNode,java.util.Collection<CAstEntity>> getAllScopedEntities()
CAstEntitygetAllScopedEntities 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 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 java.util.Collection<CAstQualifier> getQualifiers()
CAstEntitygetQualifiers in interface CAstEntitypublic CAstType getType()
CAstEntitygetType in interface CAstEntitypublic java.util.Collection<CAstAnnotation> getAnnotations()
CAstEntitygetAnnotations in interface CAstEntitypublic CAstSourcePositionMap.Position getPosition(int arg)
CAstEntitygetPosition in interface CAstEntitypublic CAstSourcePositionMap.Position getNamePosition()
CAstEntitygetNamePosition in interface CAstEntity