Skip navigation links


com.essbase.eas.ui.editor.settings
Class EditorTokenMarker

java.lang.Object
  extended by com.essbase.eas.ui.editor.settings.EditorTokenMarker

Direct Known Subclasses:
CalcScriptTokenMarker, DefaultEditorTokenMarker, ReportScriptTokenMarker

public class EditorTokenMarker
extends java.lang.Object

Field Summary
protected  java.lang.Boolean allowHyphenComment
           
protected  java.lang.Boolean allowSlashComment
           
protected  ScanToken curToken
           
protected  int lastKeyword
           
protected  int lastOffset
           
protected  java.util.ArrayList list
           
protected  java.lang.String operators
           
protected  ScanToken startToken
           

 

Constructor Summary
EditorTokenMarker()
           

 

Method Summary
protected  void addToken(int len, byte id)
           
protected  void addToken(int len, byte id, boolean force)
           
protected  boolean compareToken(EditorToken editToken, char[] array, int tokenLen)
           
protected  boolean doesSupportDoubleSlashComment()
           
protected  boolean doKeyword(javax.swing.text.Segment seg, int offset)
           
protected  EditorToken getToken(javax.swing.text.Segment seg, int endOffset)
           
protected  int getToken(java.lang.String key)
           
 EditorToken[] getTokens()
           
protected  boolean isCharKeyWord(char ch)
           
protected  boolean isSpecialTokenEnd(char c)
           
protected  boolean isSpecialTokenStart(char c)
           
protected  void readTokens()
           
 ScanToken scanToken(javax.swing.text.Segment seg)
           
 ScanToken scanToken(javax.swing.text.Segment seg, byte token)
           
 void setAllowHyphenComment(boolean allow)
           
 void setAllowSlashComment(boolean allow)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

operators

protected java.lang.String operators

list

protected java.util.ArrayList list

lastOffset

protected int lastOffset

lastKeyword

protected int lastKeyword

startToken

protected ScanToken startToken

curToken

protected ScanToken curToken

allowSlashComment

protected java.lang.Boolean allowSlashComment

allowHyphenComment

protected java.lang.Boolean allowHyphenComment

Constructor Detail

EditorTokenMarker

public EditorTokenMarker()

Method Detail

getTokens

public EditorToken[] getTokens()

readTokens

protected void readTokens()

getToken

protected int getToken(java.lang.String key)

scanToken

public ScanToken scanToken(javax.swing.text.Segment seg)

scanToken

public ScanToken scanToken(javax.swing.text.Segment seg,
                           byte token)

addToken

protected void addToken(int len,
                        byte id)

addToken

protected void addToken(int len,
                        byte id,
                        boolean force)

doKeyword

protected boolean doKeyword(javax.swing.text.Segment seg,
                            int offset)

getToken

protected EditorToken getToken(javax.swing.text.Segment seg,
                               int endOffset)

compareToken

protected boolean compareToken(EditorToken editToken,
                               char[] array,
                               int tokenLen)

doesSupportDoubleSlashComment

protected boolean doesSupportDoubleSlashComment()

isCharKeyWord

protected boolean isCharKeyWord(char ch)

setAllowSlashComment

public void setAllowSlashComment(boolean allow)

setAllowHyphenComment

public void setAllowHyphenComment(boolean allow)

isSpecialTokenStart

protected boolean isSpecialTokenStart(char c)

isSpecialTokenEnd

protected boolean isSpecialTokenEnd(char c)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.