1 19 20 package org.netbeans.spi.editor.highlighting; 21 22 import java.util.NoSuchElementException ; 23 import javax.swing.text.AttributeSet ; 24 import javax.swing.text.Position ; 25 26 38 39 public interface HighlightsSequence { 40 41 44 public static final HighlightsSequence EMPTY = new HighlightsSequence() { 45 public boolean moveNext() { 46 return false; 47 } 48 49 public int getStartOffset() { 50 throw new NoSuchElementException (); 51 } 52 53 public int getEndOffset() { 54 throw new NoSuchElementException (); 55 } 56 57 public AttributeSet getAttributes() { 58 throw new NoSuchElementException (); 59 } 60 }; 62 72 boolean moveNext(); 73 74 81 int getStartOffset(); 82 83 90 int getEndOffset(); 91 92 106 AttributeSet getAttributes(); 107 } 108 | Popular Tags |