Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.codeassist.rpgle
Class ISeriesEditorRPGILESQLCodeAssistProcessor

java.lang.Object
  extended by com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCodeAssistProcessor
      extended by com.ibm.etools.iseries.edit.codeassist.rpgle.ISeriesEditorRPGILECodeAssistProcessor
          extended by com.ibm.etools.iseries.edit.codeassist.rpgle.ISeriesEditorRPGILESQLCodeAssistProcessor

public class ISeriesEditorRPGILESQLCodeAssistProcessor
extends ISeriesEditorRPGILECodeAssistProcessor

ISeriesEditorRPGILESQLCodeAssistProcessor is the content assis processor for SQL ILE RPG

Since:
7.0

Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.edit.codeassist.rpgle.ISeriesEditorRPGILECodeAssistProcessor
_parser, _xmlDate, _xmlFile, _xmlLite
 
Fields inherited from class com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCodeAssistProcessor
_defaultImage, _deliminators, _delimiters, _imageMap, _infoImage, _keywordImage, _lastProposalCase, _sourceViewer, _templateImage, fValidator
 
Constructor Summary
ISeriesEditorRPGILESQLCodeAssistProcessor(LpexSourceViewer sourceViewer, ISeriesEditorRPGILESQLParser parser)
          Constructor for this class
 
Method Summary
 ISeriesEditorProposalMatches getProposalMatches(int documentOffset, String currentText)
           
 boolean isNotCompleteSQLStatement(int iElement)
          Indicagtes whether or not the element contains a complete cfree sql statement
protected  void processFreeForm(int iCurrentLinePosition, int iLine, String currentText, ISeriesEditorProposalMatches matches)
           
protected  void processTemplates(String context, int iCurrentLinePosition, String currentText, ISeriesEditorProposalMatches matches)
          Add the SQL templates to the list of matches
 
Methods inherited from class com.ibm.etools.iseries.edit.codeassist.rpgle.ISeriesEditorRPGILECodeAssistProcessor
getContextMatches, inParamBlock, inParamBlock
 
Methods inherited from class com.ibm.etools.iseries.edit.codeassist.base.ISeriesEditorCodeAssistProcessor
addToMatches, addToMatches, addToMatches, addToMatches, compareAndAddToMatches, compareAndAddToMatches, compareAndAddToMatches, compareAndAddToMatches, compareAndAddToMatches, compareAndAddToMatches, compareTextAt, computeCompletionProposals, computeContextInformation, createCompletionProposal, currentElement, currentPosition, findFunctionalMatches, findLastPositionOf, findLastPositionOf, findMatch, formatTemplateProposal, getActiveView, getCase, getCharAt, getCharAt, getCompletionProposalAutoActivationCharacters, getContextInformationAutoActivationCharacters, getContextInformationValidator, getCurrentFullText, getCurrentText, getCurrentTextIgnoreParentheses, getCursorArgument, getCursorArgument, getErrorMessage, getFirstTextBetween, getInfoImage, getNextDeliminator, getNextDeliminator, getPositionOfNextDeliminator, getPositionOfPreviousDeliminator, getPreviousChar, getPreviousChar, getPreviousDeliminator, getPreviousText, getPreviousText, getTemplateImage, getTemplates, getTextAt, getTextAt, getTextInRange, getTokenText, getTypeImage, inParams, inParams, inParams, isDeliminator, isDelimiter, isTextBefore, lineHasCharBefore, stripLeadingChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

ISeriesEditorRPGILESQLCodeAssistProcessor

public ISeriesEditorRPGILESQLCodeAssistProcessor(LpexSourceViewer sourceViewer,
                                                 ISeriesEditorRPGILESQLParser parser)
Constructor for this class

Parameters:
editor - The editor that the code assist processor belongs to
parser - The parser associated with this processor
Method Detail

getProposalMatches

public ISeriesEditorProposalMatches getProposalMatches(int documentOffset,
                                                       String currentText)
Overrides:
getProposalMatches in class ISeriesEditorRPGILECodeAssistProcessor

isNotCompleteSQLStatement

public boolean isNotCompleteSQLStatement(int iElement)
Indicagtes whether or not the element contains a complete cfree sql statement

Parameters:
iElement - the element to check
Returns:
true if the statement is complete, false if its complete

processFreeForm

protected void processFreeForm(int iCurrentLinePosition,
                               int iLine,
                               String currentText,
                               ISeriesEditorProposalMatches matches)
Overrides:
processFreeForm in class ISeriesEditorRPGILECodeAssistProcessor

processTemplates

protected void processTemplates(String context,
                                int iCurrentLinePosition,
                                String currentText,
                                ISeriesEditorProposalMatches matches)
Add the SQL templates to the list of matches

Overrides:
processTemplates in class ISeriesEditorCodeAssistProcessor

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.