org.mesopotamia
Class AstSourceUnit

java.lang.Object
  extended by VisitableBase
      extended by org.mesopotamia.SourceUnit
          extended by org.mesopotamia.AstSourceUnit

public class AstSourceUnit
extends SourceUnit

Represents source unit, e.g. java source file

Author:
Pavel Vlasov

Constructor Summary
protected AstSourceUnit(org.mesopotamia.sql.SourceUnit dbData, Scan scan, RepositoryLanguage repoLanguage, java.util.Collection<java.lang.Number> loadLevels)
          Instances of SourceUnit shall be created only by repository
 
Method Summary
protected  void acceptChildren(Visitor visitor)
           
 java.util.Collection<java.lang.Object> getLanguageElements()
           
 SyntaxTree getSyntaxTree()
          Helper method for ANTLR-based languages.
 Token getToken(int position)
           
 void toDom(org.w3c.dom.Element holder)
           
 
Methods inherited from class org.mesopotamia.SourceUnit
getAttribute, getDigest, getErrors, getId, getLanguage, getLevelData, getLoadLevels, getName, getNamespace, getPath, getRenderer, getScan, getSignature, getSize, removeAttribute, setAttribute, show, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AstSourceUnit

protected AstSourceUnit(org.mesopotamia.sql.SourceUnit dbData,
                        Scan scan,
                        RepositoryLanguage repoLanguage,
                        java.util.Collection<java.lang.Number> loadLevels)
                 throws MesopotamiaException
Instances of SourceUnit shall be created only by repository

Throws:
java.sql.SQLException
MesopotamiaException
Method Detail

getSyntaxTree

public SyntaxTree getSyntaxTree()
Helper method for ANTLR-based languages. Returns data for level "ast" cast to SyntaxTree.

Returns:

acceptChildren

protected void acceptChildren(Visitor visitor)

getLanguageElements

public java.util.Collection<java.lang.Object> getLanguageElements()
Returns:
Root language elements

toDom

public void toDom(org.w3c.dom.Element holder)
Overrides:
toDom in class SourceUnit

getToken

public Token getToken(int position)


Copyright © 2005 Hammurapi Group. All Rights Reserved.