public class ParameterContextInformation extends java.lang.Object implements ISmartContextInformation
ProposalContextInformation
and friends.JavaParameterListValidator
Constructor and Description |
---|
ParameterContextInformation(ParameterData data,
java.lang.String contextDisplayString,
int parameterListOffset,
int initialCarretOffset) |
Modifier and Type | Method and Description |
---|---|
protected int |
advance(java.lang.String code,
int length,
int pos,
char left,
char right) |
protected boolean |
checkGenericsHeuristic(org.eclipse.jface.text.IDocument document,
int end,
int bound) |
protected int[] |
computeCommaPositions(java.lang.String code) |
boolean |
equals(java.lang.Object object) |
protected int |
getCharCount(org.eclipse.jface.text.IDocument document,
int start,
int end,
java.lang.String increments,
java.lang.String decrements,
boolean considerNesting) |
protected int |
getCommentEnd(org.eclipse.jface.text.IDocument d,
int pos,
int end) |
java.lang.String |
getContextDisplayString() |
int |
getContextInformationPosition() |
org.eclipse.swt.graphics.Image |
getImage() |
java.lang.String |
getInformationDisplayString() |
protected int |
getStringEnd(org.eclipse.jface.text.IDocument d,
int pos,
int end,
char ch) |
int |
hashCode() |
java.util.List<java.lang.String> |
internalGetInformationDisplayString() |
boolean |
isContextInformationValid(org.eclipse.jface.text.ITextViewer viewer,
int position) |
boolean |
updatePresentation(org.eclipse.jface.text.ITextViewer viewer,
int position,
org.eclipse.jface.text.TextPresentation presentation) |
public ParameterContextInformation(ParameterData data, java.lang.String contextDisplayString, int parameterListOffset, int initialCarretOffset)
public boolean equals(java.lang.Object object)
equals
in interface org.eclipse.jface.text.contentassist.IContextInformation
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getInformationDisplayString()
getInformationDisplayString
in interface org.eclipse.jface.text.contentassist.IContextInformation
public java.util.List<java.lang.String> internalGetInformationDisplayString()
public org.eclipse.swt.graphics.Image getImage()
getImage
in interface org.eclipse.jface.text.contentassist.IContextInformation
public java.lang.String getContextDisplayString()
getContextDisplayString
in interface org.eclipse.jface.text.contentassist.IContextInformation
public int getContextInformationPosition()
getContextInformationPosition
in interface org.eclipse.jface.text.contentassist.IContextInformationExtension
public boolean isContextInformationValid(org.eclipse.jface.text.ITextViewer viewer, int position)
isContextInformationValid
in interface ISmartContextInformation
IContextInformationValidator.isContextInformationValid(int)
public boolean updatePresentation(org.eclipse.jface.text.ITextViewer viewer, int position, org.eclipse.jface.text.TextPresentation presentation)
updatePresentation
in interface ISmartContextInformation
IContextInformationPresenter.updatePresentation(int, TextPresentation)
protected int[] computeCommaPositions(java.lang.String code)
protected int advance(java.lang.String code, int length, int pos, char left, char right)
protected int getCharCount(org.eclipse.jface.text.IDocument document, int start, int end, java.lang.String increments, java.lang.String decrements, boolean considerNesting) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected int getCommentEnd(org.eclipse.jface.text.IDocument d, int pos, int end) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected int getStringEnd(org.eclipse.jface.text.IDocument d, int pos, int end, char ch) throws org.eclipse.jface.text.BadLocationException
org.eclipse.jface.text.BadLocationException
protected boolean checkGenericsHeuristic(org.eclipse.jface.text.IDocument document, int end, int bound)