lexx.autocomplete.java
Class JavaAnalyser

java.lang.Object
  |
  +--lexx.autocomplete.java.JavaAnalyser

final class JavaAnalyser
extends java.lang.Object

Given an enviroment, it takes a piece of text and works out if a method is called

Copyright (c) 2002-2003

Since:
19/03/2003
Version:
0.9

To Do

support arrays, and type casting

Author:
Mohammed Imran

Constructor Summary
JavaAnalyser(Trie environment)
          Tells you if an object is present at an given position
 
Method Summary
 java.lang.Class getClass(java.lang.String completeCode, int offset)
          Given a source code and text position it tells you if an object/class is present.
static java.lang.String removeWhiteSpaces(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaAnalyser

public JavaAnalyser(Trie environment)
Tells you if an object is present at an given position

Parameters:
environment - contains all the possible methods/variables that can be called
Method Detail

removeWhiteSpaces

public static java.lang.String removeWhiteSpaces(java.lang.String text)

getClass

public final java.lang.Class getClass(java.lang.String completeCode,
                                      int offset)
Given a source code and text position it tells you if an object/class is present. By first working out what statement is called, then analysing that statement

Parameters:
completeCode - java source code
offset - position where you wish to check if an object is present
Returns:
either null or an object if it was present at the end of the line