public abstract class AbstractCodeEntity extends AbstractEntity
Modifier and Type | Field and Description |
---|---|
protected CAstNode |
Ast |
protected CAstControlFlowRecorder |
cfg |
protected CAstSourcePositionRecorder |
src |
protected CAstType |
type |
protected CAstNodeTypeMapRecorder |
types |
FIELD_ENTITY, FILE_ENTITY, FUNCTION_ENTITY, GLOBAL_ENTITY, MACRO_ENTITY, RULE_ENTITY, SCRIPT_ENTITY, SUB_LANGUAGE_BASE, TYPE_ENTITY
Modifier | Constructor and Description |
---|---|
protected |
AbstractCodeEntity(CAstType type) |
Modifier and Type | Method and Description |
---|---|
CAstNode |
getAST()
The CAPA AST of this entity.
|
CAstControlFlowMap |
getControlFlow()
The control flow map for the CAPA AST of this entity.
|
CAstNodeTypeMap |
getNodeTypeMap()
The map from CAstNodes to types.
|
CAstSourcePositionMap |
getSourceMap()
The map of CAstNodes to source positions for the CAPA AST of this entity.
|
CAstType |
getType()
The CAst type of this entity.
|
void |
setAst(CAstNode Ast) |
void |
setGotoTarget(CAstNode from,
CAstNode to) |
void |
setLabelledGotoTarget(CAstNode from,
CAstNode to,
Object label) |
void |
setNodePosition(CAstNode n,
CAstSourcePositionMap.Position pos) |
void |
setNodeType(CAstNode n,
CAstType type) |
addScopedEntity, getAllScopedEntities, getAnnotations, getPosition, getScopedEntities, getSignature, setPosition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArgumentCount, getArgumentDefaults, getArgumentNames, getKind, getName, getQualifiers
protected final CAstSourcePositionRecorder src
protected final CAstControlFlowRecorder cfg
protected final CAstNodeTypeMapRecorder types
protected final CAstType type
protected CAstNode Ast
protected AbstractCodeEntity(CAstType type)
public CAstNode getAST()
CAstEntity
public CAstType getType()
CAstEntity
public CAstControlFlowMap getControlFlow()
CAstEntity
public CAstSourcePositionMap getSourceMap()
CAstEntity
public CAstNodeTypeMap getNodeTypeMap()
CAstEntity
public void setNodePosition(CAstNode n, CAstSourcePositionMap.Position pos)
public void setAst(CAstNode Ast)