Class AbstractEntity

    • Constructor Detail

      • AbstractEntity

        public AbstractEntity()
    • Method Detail

      • 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
      • 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
      • 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
      • addScopedEntity

        public void addScopedEntity​(CAstNode construct,
                                    CAstEntity child)