The Meta-Environment API

org.meta_environment.eclipse.parser
Class ParseController

java.lang.Object
  extended by toolbus.adapter.AbstractTool
      extended by toolbus.adapter.java.AbstractJavaTool
          extended by toolbus.adapter.eclipse.EclipseTool
              extended by org.meta_environment.eclipse.parser.ParseController
All Implemented Interfaces:
org.eclipse.imp.language.ILanguageService, org.eclipse.imp.parser.IParseController, toolbus.IOperations

public class ParseController
extends toolbus.adapter.eclipse.EclipseTool
implements org.eclipse.imp.parser.IParseController, org.eclipse.imp.language.ILanguageService


Field Summary
private  java.lang.String absPath
           
(package private)  errorapi.Factory eFactory
           
private  errorapi.types.ErrorList errors
           
private  org.eclipse.core.runtime.IPath filePath
           
private  org.eclipse.imp.parser.IMessageHandler handler
           
private  org.eclipse.imp.model.ISourceProject project
           
 aterm.ATerm result
           
 
Fields inherited from class toolbus.adapter.eclipse.EclipseTool
factory, TIME_OUT
 
Fields inherited from class toolbus.adapter.AbstractTool
DIRECTTOOL, REMOTETOOL, termFactory, toolBridge
 
Fields inherited from interface toolbus.IOperations
ACKDO, ACKEVENT, CONNECT, DEBUGPERFORMANCESTATS, DISCONNECT, DO, END, EVAL, EVENT, PERFORMANCESTATS, REQUEST, RESPONSE, TERMINATE, UNDEFINED, VALUE
 
Constructor Summary
ParseController()
           
 
Method Summary
 org.eclipse.imp.services.IAnnotationTypeInfo getAnnotationTypeInfo()
           
 java.lang.Object getCurrentAst()
           
 org.eclipse.imp.language.Language getLanguage()
           
 org.eclipse.imp.parser.ILexer getLexer()
           
 org.eclipse.imp.parser.ISourcePositionLocator getNodeLocator()
           
 org.eclipse.imp.parser.IParser getParser()
           
 org.eclipse.core.runtime.IPath getPath()
           
 org.eclipse.imp.model.ISourceProject getProject()
           
 org.eclipse.imp.services.ILanguageSyntaxProperties getSyntaxProperties()
           
 java.util.Iterator<?> getTokenIterator(org.eclipse.jface.text.IRegion region)
           
private  void handleErrors(errorapi.types.ErrorList list)
           
 void initialize(org.eclipse.core.runtime.IPath filePath, org.eclipse.imp.model.ISourceProject project, org.eclipse.imp.parser.IMessageHandler handler)
           
 java.lang.Object parse(java.lang.String input, boolean scanOnly, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class toolbus.adapter.eclipse.EclipseTool
connect, connect, decode, getName, receiveAckEvent, receiveTerminate
 
Methods inherited from class toolbus.adapter.java.AbstractJavaTool
connectDirectly
 
Methods inherited from class toolbus.adapter.AbstractTool
disconnect, getFactory, getToolBridge, pack, sendEvent, sendRequest, setToolBridge, terminate, unpack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filePath

private org.eclipse.core.runtime.IPath filePath

absPath

private java.lang.String absPath

project

private org.eclipse.imp.model.ISourceProject project

handler

private org.eclipse.imp.parser.IMessageHandler handler

errors

private errorapi.types.ErrorList errors

result

public aterm.ATerm result

eFactory

errorapi.Factory eFactory
Constructor Detail

ParseController

public ParseController()
Method Detail

getAnnotationTypeInfo

public org.eclipse.imp.services.IAnnotationTypeInfo getAnnotationTypeInfo()
Specified by:
getAnnotationTypeInfo in interface org.eclipse.imp.parser.IParseController

getCurrentAst

public java.lang.Object getCurrentAst()
Specified by:
getCurrentAst in interface org.eclipse.imp.parser.IParseController

getLexer

public org.eclipse.imp.parser.ILexer getLexer()

getNodeLocator

public org.eclipse.imp.parser.ISourcePositionLocator getNodeLocator()
Specified by:
getNodeLocator in interface org.eclipse.imp.parser.IParseController

getParser

public org.eclipse.imp.parser.IParser getParser()

getPath

public org.eclipse.core.runtime.IPath getPath()
Specified by:
getPath in interface org.eclipse.imp.parser.IParseController

getProject

public org.eclipse.imp.model.ISourceProject getProject()
Specified by:
getProject in interface org.eclipse.imp.parser.IParseController

getSyntaxProperties

public org.eclipse.imp.services.ILanguageSyntaxProperties getSyntaxProperties()
Specified by:
getSyntaxProperties in interface org.eclipse.imp.parser.IParseController

initialize

public void initialize(org.eclipse.core.runtime.IPath filePath,
                       org.eclipse.imp.model.ISourceProject project,
                       org.eclipse.imp.parser.IMessageHandler handler)
Specified by:
initialize in interface org.eclipse.imp.parser.IParseController

parse

public java.lang.Object parse(java.lang.String input,
                              boolean scanOnly,
                              org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
parse in interface org.eclipse.imp.parser.IParseController

handleErrors

private void handleErrors(errorapi.types.ErrorList list)

getTokenIterator

public java.util.Iterator<?> getTokenIterator(org.eclipse.jface.text.IRegion region)
Specified by:
getTokenIterator in interface org.eclipse.imp.parser.IParseController

getLanguage

public org.eclipse.imp.language.Language getLanguage()

The Meta-Environment API