org.jtool.jxplatform.j2x.resolver
Class JxResolver

java.lang.Object
  extended byorg.jtool.jxplatform.j2x.resolver.JxResolver

public class JxResolver
extends java.lang.Object

Resolves type, method, field, and variable bindings.

Author:
Katsuhisa Maruyama

Constructor Summary
JxResolver(TypeInformation typeinfo)
          Creates a resolver that adds semantic information about source code to an XML document.
 
Method Summary
 void close()
          Closes the resolver.class
 boolean createHierarchy(org.w3c.dom.Document doc, org.eclipse.jdt.core.ICompilationUnit icu)
          Creates class hierarchy information.
 java.lang.String getMessage()
          Returns a message reported by the compiler during the parsing.
 boolean resolve(org.w3c.dom.Document doc, org.eclipse.jdt.core.dom.CompilationUnit cu)
          Adds semantic information about source code to an XML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JxResolver

public JxResolver(TypeInformation typeinfo)
Creates a resolver that adds semantic information about source code to an XML document.

Parameters:
typeinfo - Information about the type binding.
Method Detail

close

public void close()
Closes the resolver.class


resolve

public boolean resolve(org.w3c.dom.Document doc,
                       org.eclipse.jdt.core.dom.CompilationUnit cu)
Adds semantic information about source code to an XML document.

Parameters:
doc - A DOM document object.
cu - A compilation unit of a parsed AST.
Returns:
true if the resolving succeeds, otherwise false.

createHierarchy

public boolean createHierarchy(org.w3c.dom.Document doc,
                               org.eclipse.jdt.core.ICompilationUnit icu)
Creates class hierarchy information.

Parameters:
doc - A DOM document object.
icu - A compilation unit.
Returns:
true if information was created, otherwise false.

getMessage

public java.lang.String getMessage()
Returns a message reported by the compiler during the parsing.

Returns:
the message, possibly empty string.