Package com.ibm.wala.cast.ir.translator
Class AbstractCodeEntity
- java.lang.Object
-
- com.ibm.wala.cast.ir.translator.AbstractEntity
-
- com.ibm.wala.cast.ir.translator.AbstractCodeEntity
-
- All Implemented Interfaces:
CAstEntity
- Direct Known Subclasses:
AbstractScriptEntity
public abstract class AbstractCodeEntity extends AbstractEntity
-
-
Field Summary
Fields Modifier and Type Field Description protected CAstNode
Ast
protected CAstControlFlowRecorder
cfg
protected CAstSourcePositionRecorder
src
protected CAstType
type
protected CAstNodeTypeMapRecorder
types
-
Fields inherited from interface com.ibm.wala.cast.tree.CAstEntity
FIELD_ENTITY, FILE_ENTITY, FUNCTION_ENTITY, GLOBAL_ENTITY, MACRO_ENTITY, RULE_ENTITY, SCRIPT_ENTITY, SUB_LANGUAGE_BASE, TYPE_ENTITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCodeEntity(CAstType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.ibm.wala.cast.ir.translator.AbstractEntity
addScopedEntity, getAllScopedEntities, getAnnotations, getPosition, getScopedEntities, getSignature, setPosition
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.wala.cast.tree.CAstEntity
getArgumentCount, getArgumentDefaults, getArgumentNames, getKind, getName, getQualifiers
-
-
-
-
Field Detail
-
src
protected final CAstSourcePositionRecorder src
-
cfg
protected final CAstControlFlowRecorder cfg
-
types
protected final CAstNodeTypeMapRecorder types
-
type
protected final CAstType type
-
Ast
protected CAstNode Ast
-
-
Constructor Detail
-
AbstractCodeEntity
protected AbstractCodeEntity(CAstType type)
-
-
Method Detail
-
getAST
public CAstNode getAST()
Description copied from interface:CAstEntity
The CAPA AST of this entity.
-
getType
public CAstType getType()
Description copied from interface:CAstEntity
The CAst type of this entity.
-
getControlFlow
public CAstControlFlowMap getControlFlow()
Description copied from interface:CAstEntity
The control flow map for the CAPA AST of this entity.
-
getSourceMap
public CAstSourcePositionMap getSourceMap()
Description copied from interface:CAstEntity
The map of CAstNodes to source positions for the CAPA AST of this entity.
-
getNodeTypeMap
public CAstNodeTypeMap getNodeTypeMap()
Description copied from interface:CAstEntity
The map from CAstNodes to types. Valid for nodes that have an explicitly declared type (e.g. local vars).
-
setNodePosition
public void setNodePosition(CAstNode n, CAstSourcePositionMap.Position pos)
-
setAst
public void setAst(CAstNode Ast)
-
-