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 CAstNodeAstprotected CAstControlFlowRecordercfgprotected CAstSourcePositionRecordersrcprotected CAstTypetypeprotected CAstNodeTypeMapRecordertypes-
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 protectedAbstractCodeEntity(CAstType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CAstNodegetAST()The CAPA AST of this entity.CAstControlFlowMapgetControlFlow()The control flow map for the CAPA AST of this entity.CAstNodeTypeMapgetNodeTypeMap()The map from CAstNodes to types.CAstSourcePositionMapgetSourceMap()The map of CAstNodes to source positions for the CAPA AST of this entity.CAstTypegetType()The CAst type of this entity.voidsetAst(CAstNode Ast)voidsetGotoTarget(CAstNode from, CAstNode to)voidsetLabelledGotoTarget(CAstNode from, CAstNode to, Object label)voidsetNodePosition(CAstNode n, CAstSourcePositionMap.Position pos)voidsetNodeType(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:CAstEntityThe CAPA AST of this entity.
-
getType
public CAstType getType()
Description copied from interface:CAstEntityThe CAst type of this entity.
-
getControlFlow
public CAstControlFlowMap getControlFlow()
Description copied from interface:CAstEntityThe control flow map for the CAPA AST of this entity.
-
getSourceMap
public CAstSourcePositionMap getSourceMap()
Description copied from interface:CAstEntityThe map of CAstNodes to source positions for the CAPA AST of this entity.
-
getNodeTypeMap
public CAstNodeTypeMap getNodeTypeMap()
Description copied from interface:CAstEntityThe 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)
-
-