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.
|
CAstControlFlowRecorder |
getControlFlow()
The control flow map for the CAPA AST of this entity.
|
CAstNodeTypeMapRecorder |
getNodeTypeMap()
The map from CAstNodes to types.
|
CAstSourcePositionRecorder |
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,
java.lang.Object label) |
void |
setNodePosition(CAstNode n,
CAstSourcePositionMap.Position pos) |
void |
setNodeType(CAstNode n,
CAstType type) |
addScopedEntity, getAllScopedEntities, getAnnotations, getPosition, getScopedEntities, getSignature, setPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArgumentCount, getArgumentDefaults, getArgumentNames, getKind, getName, getNamePosition, getOriginal, getPosition, getQualifiersprotected 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()
CAstEntitypublic CAstType getType()
CAstEntitypublic CAstControlFlowRecorder getControlFlow()
CAstEntitypublic CAstSourcePositionRecorder getSourceMap()
CAstEntitypublic CAstNodeTypeMapRecorder getNodeTypeMap()
CAstEntitypublic void setLabelledGotoTarget(CAstNode from, CAstNode to, java.lang.Object label)
public void setNodePosition(CAstNode n, CAstSourcePositionMap.Position pos)
public void setAst(CAstNode Ast)