com.ibm.wala.cast.java.translator.polyglot
Class PolyglotJava2CAstTranslator.CodeBodyEntity

java.lang.Object
  extended by com.ibm.wala.cast.java.translator.polyglot.PolyglotJava2CAstTranslator.CodeBodyEntity
All Implemented Interfaces:
CAstEntity
Direct Known Subclasses:
PolyglotJava2CAstTranslator.ProcedureEntity
Enclosing class:
PolyglotJava2CAstTranslator

protected abstract static class PolyglotJava2CAstTranslator.CodeBodyEntity
extends java.lang.Object
implements CAstEntity


Field Summary
 
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
PolyglotJava2CAstTranslator.CodeBodyEntity(java.util.Map<CAstNode,CAstEntity> entities)
           
 
Method Summary
 java.util.Map<CAstNode,java.util.Collection<CAstEntity>> getAllScopedEntities()
          Some programming language constructs have a lexical structure.
 java.util.Iterator 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.
 
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, getAST, getControlFlow, getKind, getName, getNodeTypeMap, getPosition, getQualifiers, getSourceMap, getType
 

Constructor Detail

PolyglotJava2CAstTranslator.CodeBodyEntity

public PolyglotJava2CAstTranslator.CodeBodyEntity(java.util.Map<CAstNode,CAstEntity> entities)
Method Detail

getAllScopedEntities

public java.util.Map<CAstNode,java.util.Collection<CAstEntity>> getAllScopedEntities()
Description copied from interface: CAstEntity
Some programming language constructs have a lexical structure. This should be those constructs that are directly inside the current one. The result of this method is a map from source construct to the set of entities induced by that construct. Entities induced by no particular construct are mapped by the null key.

Specified by:
getAllScopedEntities in interface CAstEntity

getScopedEntities

public java.util.Iterator getScopedEntities(CAstNode construct)
Description copied from interface: CAstEntity
Some programming language constructs have a lexical structure. This should be those constructs that are directly inside the current one. The result of this method is the scoped entities induced by the construct `construct' (i.e. a node of the AST returned by Enclosed entities not induced by a specific AST node are mapped by the construct 'null'.

Specified by:
getScopedEntities in interface CAstEntity

getSignature

public java.lang.String getSignature()
Description copied from interface: CAstEntity
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. Signatures often denote typing information as well, but this is not required. This method should return a signature if appropriate, and null otherwise.

Specified by:
getSignature in interface CAstEntity