Class JDTJava2CAstTranslator.ProcedureEntity

java.lang.Object
com.ibm.wala.cast.java.translator.jdt.JDTJava2CAstTranslator.ProcedureEntity
All Implemented Interfaces:
JavaProcedureEntity, CAstEntity
Enclosing class:
JDTJava2CAstTranslator<T extends CAstSourcePositionMap.Position>

protected final class JDTJava2CAstTranslator.ProcedureEntity extends Object implements JavaProcedureEntity
  • Method Details

    • getAllScopedEntities

      public Map<CAstNode,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 Iterator<CAstEntity> 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 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
      Specified by:
      getSignature in interface JavaProcedureEntity
    • getAnnotations

      public Collection<CAstAnnotation> getAnnotations()
      Description copied from interface: CAstEntity
      Returns the set of any annotations this entity may have
      Specified by:
      getAnnotations in interface CAstEntity
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKind

      public int getKind()
      Description copied from interface: CAstEntity
      What kind of entity is this? The answer should be one of the constants in this file. This has no meaning to the CAPA AST interfaces, but should be meaningful to a given producer and consumer of an entity.
      Specified by:
      getKind in interface CAstEntity
    • getName

      public String getName()
      Description copied from interface: CAstEntity
      Some programming language constructs have names. This should be it, if appropriate, and null otherwise.
      Specified by:
      getName in interface CAstEntity
    • getArgumentNames

      public String[] getArgumentNames()
      INCLUDING first parameter 'this' (for non-static methods)
      Specified by:
      getArgumentNames in interface CAstEntity
    • getArgumentDefaults

      public CAstNode[] getArgumentDefaults()
      Description copied from interface: CAstEntity
      Some programming language constructs allow arguments to have default values. This should be those defaults, one per named argument above. Otherwise, please return an array of size 0, since null can be a pain.
      Specified by:
      getArgumentDefaults in interface CAstEntity
    • getArgumentCount

      public int getArgumentCount()
      INCLUDING first parameter 'this' (for non-static methods)
      Specified by:
      getArgumentCount in interface CAstEntity
    • getAST

      public CAstNode getAST()
      Description copied from interface: CAstEntity
      The CAPA AST of this entity.
      Specified by:
      getAST in interface CAstEntity
    • getControlFlow

      public CAstControlFlowMap getControlFlow()
      Description copied from interface: CAstEntity
      The control flow map for the CAPA AST of this entity.
      Specified by:
      getControlFlow in interface CAstEntity
    • getSourceMap

      public CAstSourcePositionMap getSourceMap()
      Description copied from interface: CAstEntity
      The map of CAstNodes to source positions for the CAPA AST of this entity.
      Specified by:
      getSourceMap in interface CAstEntity
    • getPosition

      public CAstSourcePositionMap.Position getPosition()
      Description copied from interface: CAstEntity
      The source position of this entity.
      Specified by:
      getPosition in interface CAstEntity
    • 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).
      Specified by:
      getNodeTypeMap in interface CAstEntity
    • getQualifiers

      public Collection<CAstQualifier> getQualifiers()
      Description copied from interface: CAstEntity
      Returns an Iterator over the qualifiers of the given entity, if it has any, e.g., "final", "private".
      Specified by:
      getQualifiers in interface CAstEntity
    • getType

      public CAstType getType()
      Description copied from interface: CAstEntity
      The CAst type of this entity.
      Specified by:
      getType in interface CAstEntity
    • getPosition

      public CAstSourcePositionMap.Position getPosition(int arg)
      Description copied from interface: CAstEntity
      The source position of argument 'arg' this entity, if any;
      Specified by:
      getPosition in interface CAstEntity
    • getNamePosition

      public CAstSourcePositionMap.Position getNamePosition()
      Description copied from interface: CAstEntity
      The source position of the token denoting this entity's name.
      Specified by:
      getNamePosition in interface CAstEntity