|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.m2m.atl.adt.ui.text.AtlPairMatcher
public class AtlPairMatcher
This class will help for matching pairs of characters.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.jface.text.source.ICharacterPairMatcher |
|---|
LEFT, RIGHT |
| Constructor Summary | |
|---|---|
AtlPairMatcher(char[] pairs)
Creates a new instance of the ATL pair matcher. |
|
AtlPairMatcher(java.lang.String[] pairs)
Creates a new instance of the ATL pair matcher. |
|
| Method Summary | |
|---|---|
void |
clear()
|
void |
dispose()
|
int |
getAnchor()
|
char |
getMatchingPair(char singleton)
|
org.eclipse.jface.text.IRegion |
match(org.eclipse.jface.text.IDocument iDocument,
int i)
|
protected boolean |
matchPairsAt()
|
int |
searchForClosingPeer(int offset,
int openingPeer,
int closingPeer,
org.eclipse.jface.text.IDocument document)
|
int |
searchForOpeningPeer(int offset,
int openingPeer,
int closingPeer,
org.eclipse.jface.text.IDocument document)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtlPairMatcher(char[] pairs)
pairs - the character to match.public AtlPairMatcher(java.lang.String[] pairs)
pairs - the character to match.| Method Detail |
|---|
public void clear()
clear in interface org.eclipse.jface.text.source.ICharacterPairMatcherICharacterPairMatcher.clear()public void dispose()
dispose in interface org.eclipse.jface.text.source.ICharacterPairMatcherICharacterPairMatcher.dispose()public int getAnchor()
getAnchor in interface org.eclipse.jface.text.source.ICharacterPairMatcherICharacterPairMatcher.getAnchor()public char getMatchingPair(char singleton)
public org.eclipse.jface.text.IRegion match(org.eclipse.jface.text.IDocument iDocument,
int i)
match in interface org.eclipse.jface.text.source.ICharacterPairMatcherICharacterPairMatcher.match(org.eclipse.jface.text.IDocument, int)protected boolean matchPairsAt()
public int searchForClosingPeer(int offset,
int openingPeer,
int closingPeer,
org.eclipse.jface.text.IDocument document)
throws java.io.IOException
java.io.IOException
public int searchForOpeningPeer(int offset,
int openingPeer,
int closingPeer,
org.eclipse.jface.text.IDocument document)
throws java.io.IOException
java.io.IOException
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||