lexx.parser.ast
Interface ASTAnalyser

All Known Implementing Classes:
JavaASTAnalyser

public interface ASTAnalyser

This takes an AST from an OO language and analyses it

This class extends ANTLRs and give you the environment/possible variables/methods what can be called at a given position. It also says what are the possible classes available in the current AST

Copyright (c) 2002-2003

Since:
19/03/2003
Version:
1.0
Author:
Mohammed Imran

Method Summary
 Trie getEnvironmentAt(int pos)
          Tells you what variables/methods can be called at a specific position
 Trie getPossibleObjects()
          Tells you what classes/object can be created/called given an AST
 

Method Detail

getPossibleObjects

public Trie getPossibleObjects()
Tells you what classes/object can be created/called given an AST

Returns:
a trie data structure

getEnvironmentAt

public Trie getEnvironmentAt(int pos)
Tells you what variables/methods can be called at a specific position

Parameters:
pos - the position where you want to get its enviroment
Returns:
a trie data structure