|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParser
The interface for all parsers
Method Summary | |
---|---|
IContentAssistProcessor |
getCompletionProcessor(IAdaptable element)
Returns the parser's content assist processor |
java.lang.String |
getEditString(IAdaptable element,
int flags)
Gets the string that is a subject to edit. |
ICommand |
getParseCommand(IAdaptable element,
java.lang.String newString,
int flags)
Gets the command that applies the new edit string |
java.lang.String |
getPrintString(IAdaptable element,
int flags)
Returns a string intended for display. |
boolean |
isAffectingEvent(java.lang.Object event,
int flags)
Determines if the event requires action from the parser point of view. |
IParserEditStatus |
isValidEditString(IAdaptable element,
java.lang.String editString)
Tests if the user-entered string is in a valid form that can be parsed |
Method Detail |
---|
java.lang.String getEditString(IAdaptable element, int flags)
element
- the element for which the edit string is requestedflags
- the bitflag of parser options
IParserEditStatus isValidEditString(IAdaptable element, java.lang.String editString)
element
- the element for which the edit string is applied toeditString
- the user-entered string
EDITABLE_STATUS
if the edit string is valid, otherwise
a status that includes information describing why it is an invalid edit string.ICommand getParseCommand(IAdaptable element, java.lang.String newString, int flags)
element
- the element for which the parse command is requestednewString
- to be set by the commandflags
- the bitflag of parser options
java.lang.String getPrintString(IAdaptable element, int flags)
element
- the element for which the print string is requestedflags
- the bitflag of parser options
boolean isAffectingEvent(java.lang.Object event, int flags)
event
- the event, an instance of IElementEventflags
- the bitflag of parser options
true
if the event affects the parser,
otherwise false
.IContentAssistProcessor getCompletionProcessor(IAdaptable element)
element
- the element
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.