Klasse SimpleDocument

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.SimpleDocument
Alle implementierten Schnittstellen:
org.eclipse.jface.text.IDocument

public class SimpleDocument extends Object implements org.eclipse.jface.text.IDocument
Minimal implementation of IDocument to apply text edit onto a string.
  • Konstruktordetails

    • SimpleDocument

      public SimpleDocument(String source)
  • Methodendetails

    • getChar

      public char getChar(int offset)
      Angegeben von:
      getChar in Schnittstelle org.eclipse.jface.text.IDocument
    • getLength

      public int getLength()
      Angegeben von:
      getLength in Schnittstelle org.eclipse.jface.text.IDocument
    • get

      public String get()
      Angegeben von:
      get in Schnittstelle org.eclipse.jface.text.IDocument
    • get

      public String get(int offset, int length)
      Angegeben von:
      get in Schnittstelle org.eclipse.jface.text.IDocument
    • set

      public void set(String text)
      Angegeben von:
      set in Schnittstelle org.eclipse.jface.text.IDocument
    • replace

      public void replace(int offset, int length, String text)
      Angegeben von:
      replace in Schnittstelle org.eclipse.jface.text.IDocument
    • addDocumentListener

      public void addDocumentListener(org.eclipse.jface.text.IDocumentListener listener)
      Angegeben von:
      addDocumentListener in Schnittstelle org.eclipse.jface.text.IDocument
    • removeDocumentListener

      public void removeDocumentListener(org.eclipse.jface.text.IDocumentListener listener)
      Angegeben von:
      removeDocumentListener in Schnittstelle org.eclipse.jface.text.IDocument
    • addPrenotifiedDocumentListener

      public void addPrenotifiedDocumentListener(org.eclipse.jface.text.IDocumentListener documentAdapter)
      Angegeben von:
      addPrenotifiedDocumentListener in Schnittstelle org.eclipse.jface.text.IDocument
    • removePrenotifiedDocumentListener

      public void removePrenotifiedDocumentListener(org.eclipse.jface.text.IDocumentListener documentAdapter)
      Angegeben von:
      removePrenotifiedDocumentListener in Schnittstelle org.eclipse.jface.text.IDocument
    • addPositionCategory

      public void addPositionCategory(String category)
      Angegeben von:
      addPositionCategory in Schnittstelle org.eclipse.jface.text.IDocument
    • removePositionCategory

      public void removePositionCategory(String category)
      Angegeben von:
      removePositionCategory in Schnittstelle org.eclipse.jface.text.IDocument
    • getPositionCategories

      public String[] getPositionCategories()
      Angegeben von:
      getPositionCategories in Schnittstelle org.eclipse.jface.text.IDocument
    • containsPositionCategory

      public boolean containsPositionCategory(String category)
      Angegeben von:
      containsPositionCategory in Schnittstelle org.eclipse.jface.text.IDocument
    • addPosition

      public void addPosition(org.eclipse.jface.text.Position position)
      Angegeben von:
      addPosition in Schnittstelle org.eclipse.jface.text.IDocument
    • removePosition

      public void removePosition(org.eclipse.jface.text.Position position)
      Angegeben von:
      removePosition in Schnittstelle org.eclipse.jface.text.IDocument
    • addPosition

      public void addPosition(String category, org.eclipse.jface.text.Position position)
      Angegeben von:
      addPosition in Schnittstelle org.eclipse.jface.text.IDocument
    • removePosition

      public void removePosition(String category, org.eclipse.jface.text.Position position)
      Angegeben von:
      removePosition in Schnittstelle org.eclipse.jface.text.IDocument
    • getPositions

      public org.eclipse.jface.text.Position[] getPositions(String category)
      Angegeben von:
      getPositions in Schnittstelle org.eclipse.jface.text.IDocument
    • containsPosition

      public boolean containsPosition(String category, int offset, int length)
      Angegeben von:
      containsPosition in Schnittstelle org.eclipse.jface.text.IDocument
    • computeIndexInCategory

      public int computeIndexInCategory(String category, int offset)
      Angegeben von:
      computeIndexInCategory in Schnittstelle org.eclipse.jface.text.IDocument
    • addPositionUpdater

      public void addPositionUpdater(org.eclipse.jface.text.IPositionUpdater updater)
      Angegeben von:
      addPositionUpdater in Schnittstelle org.eclipse.jface.text.IDocument
    • removePositionUpdater

      public void removePositionUpdater(org.eclipse.jface.text.IPositionUpdater updater)
      Angegeben von:
      removePositionUpdater in Schnittstelle org.eclipse.jface.text.IDocument
    • insertPositionUpdater

      public void insertPositionUpdater(org.eclipse.jface.text.IPositionUpdater updater, int index)
      Angegeben von:
      insertPositionUpdater in Schnittstelle org.eclipse.jface.text.IDocument
    • getPositionUpdaters

      public org.eclipse.jface.text.IPositionUpdater[] getPositionUpdaters()
      Angegeben von:
      getPositionUpdaters in Schnittstelle org.eclipse.jface.text.IDocument
    • getLegalContentTypes

      public String[] getLegalContentTypes()
      Angegeben von:
      getLegalContentTypes in Schnittstelle org.eclipse.jface.text.IDocument
    • getContentType

      public String getContentType(int offset)
      Angegeben von:
      getContentType in Schnittstelle org.eclipse.jface.text.IDocument
    • getPartition

      public org.eclipse.jface.text.ITypedRegion getPartition(int offset)
      Angegeben von:
      getPartition in Schnittstelle org.eclipse.jface.text.IDocument
    • computePartitioning

      public org.eclipse.jface.text.ITypedRegion[] computePartitioning(int offset, int length)
      Angegeben von:
      computePartitioning in Schnittstelle org.eclipse.jface.text.IDocument
    • addDocumentPartitioningListener

      public void addDocumentPartitioningListener(org.eclipse.jface.text.IDocumentPartitioningListener listener)
      Angegeben von:
      addDocumentPartitioningListener in Schnittstelle org.eclipse.jface.text.IDocument
    • removeDocumentPartitioningListener

      public void removeDocumentPartitioningListener(org.eclipse.jface.text.IDocumentPartitioningListener listener)
      Angegeben von:
      removeDocumentPartitioningListener in Schnittstelle org.eclipse.jface.text.IDocument
    • setDocumentPartitioner

      public void setDocumentPartitioner(org.eclipse.jface.text.IDocumentPartitioner partitioner)
      Angegeben von:
      setDocumentPartitioner in Schnittstelle org.eclipse.jface.text.IDocument
    • getDocumentPartitioner

      public org.eclipse.jface.text.IDocumentPartitioner getDocumentPartitioner()
      Angegeben von:
      getDocumentPartitioner in Schnittstelle org.eclipse.jface.text.IDocument
    • getLineLength

      public int getLineLength(int line)
      Angegeben von:
      getLineLength in Schnittstelle org.eclipse.jface.text.IDocument
    • getLineOfOffset

      public int getLineOfOffset(int offset)
      Angegeben von:
      getLineOfOffset in Schnittstelle org.eclipse.jface.text.IDocument
    • getLineOffset

      public int getLineOffset(int line)
      Angegeben von:
      getLineOffset in Schnittstelle org.eclipse.jface.text.IDocument
    • getLineInformation

      public org.eclipse.jface.text.IRegion getLineInformation(int line)
      Angegeben von:
      getLineInformation in Schnittstelle org.eclipse.jface.text.IDocument
    • getLineInformationOfOffset

      public org.eclipse.jface.text.IRegion getLineInformationOfOffset(int offset)
      Angegeben von:
      getLineInformationOfOffset in Schnittstelle org.eclipse.jface.text.IDocument
    • getNumberOfLines

      public int getNumberOfLines()
      Angegeben von:
      getNumberOfLines in Schnittstelle org.eclipse.jface.text.IDocument
    • getNumberOfLines

      public int getNumberOfLines(int offset, int length)
      Angegeben von:
      getNumberOfLines in Schnittstelle org.eclipse.jface.text.IDocument
    • computeNumberOfLines

      public int computeNumberOfLines(String text)
      Angegeben von:
      computeNumberOfLines in Schnittstelle org.eclipse.jface.text.IDocument
    • getLegalLineDelimiters

      public String[] getLegalLineDelimiters()
      Angegeben von:
      getLegalLineDelimiters in Schnittstelle org.eclipse.jface.text.IDocument
    • getLineDelimiter

      public String getLineDelimiter(int line)
      Angegeben von:
      getLineDelimiter in Schnittstelle org.eclipse.jface.text.IDocument
    • search

      public int search(int startOffset, String findString, boolean forwardSearch, boolean caseSensitive, boolean wholeWord)
      Veraltet.
      Angegeben von:
      search in Schnittstelle org.eclipse.jface.text.IDocument
      Siehe auch:
      • IDocument.search(int, java.lang.String, boolean, boolean, boolean)