public class ElementRule extends ElementScopable implements Comparable, EditorPersistentObject, ATEFoldingEntity, ATEGutterItem
| Modifier and Type | Field and Description |
|---|---|
protected int |
actionsEndIndex |
protected int |
actionsStartIndex |
protected int |
blocksEndIndex |
protected int |
blocksStartIndex |
boolean |
breakpoint |
ATEToken |
colon |
ATEToken |
end |
List<GrammarError> |
errors |
boolean |
expanded |
boolean |
hasLeftRecursion |
boolean |
hierarchyAnalyzed |
boolean |
ignored |
boolean |
isOverridden |
static int |
ITEM_TYPE_OVERRIDDEN |
static int |
ITEM_TYPE_OVERRIDE |
boolean |
leftRecursionAnalyzed |
Set |
leftRecursiveRulesSet |
boolean |
lexer |
String |
name |
boolean |
needsToBuildErrors |
List<String> |
overriddenGrammars |
boolean |
override |
List<String> |
overrideGrammars |
protected GrammarSyntaxParser |
parser |
protected int |
refsEndIndex |
protected int |
refsStartIndex |
ATEToken |
start |
List<Integer> |
types |
scope| Constructor and Description |
|---|
ElementRule(GrammarSyntaxParser parser,
String name,
ATEToken start,
ATEToken colon,
ATEToken end) |
ElementRule(String name) |
getScope, setScopepublic String name
public ATEToken start
public ATEToken colon
public ATEToken end
public boolean ignored
public boolean expanded
public boolean breakpoint
public boolean lexer
public boolean hasLeftRecursion
public boolean leftRecursionAnalyzed
public Set leftRecursiveRulesSet
public boolean hierarchyAnalyzed
public List<GrammarError> errors
public boolean needsToBuildErrors
protected GrammarSyntaxParser parser
protected int refsStartIndex
protected int refsEndIndex
protected int blocksStartIndex
protected int blocksEndIndex
protected int actionsStartIndex
protected int actionsEndIndex
public static final int ITEM_TYPE_OVERRIDE
public static final int ITEM_TYPE_OVERRIDDEN
public boolean override
public boolean isOverridden
public ElementRule(String name)
public ElementRule(GrammarSyntaxParser parser, String name, ATEToken start, ATEToken colon, ATEToken end)
public void completed()
public void resetHierarchy()
public GrammarEngine getEngine()
public void setEngine(GrammarEngine engine)
public void setReferencesIndexes(int startIndex,
int endIndex)
public List<ElementReference> getReferences()
public void setBlocksIndexes(int startIndex,
int endIndex)
public List<ElementBlock> getBlocks()
public void setActionsIndexes(int startIndex,
int endIndex)
public List<ElementAction> getActions()
public int getStartIndex()
public int getEndIndex()
public int getLength()
public int getInternalTokensStartIndex()
public int getInternalTokensEndIndex()
public void setErrors(List<GrammarError> errors)
public List<GrammarError> getErrors()
public void setExpanded(boolean expanded)
public boolean isExpanded()
public void setLeftRecursiveRulesSet(Set rulesSet)
public Set getLeftRecursiveRulesSet()
public boolean hasLeftRecursion()
public boolean detectLeftRecursion()
public String getTextRuleAfterRemovingLeftRecursion()
public boolean hasErrors()
public void setNeedsToBuildErrors(boolean flag)
public boolean needsToBuildErrors()
public String getErrorMessageString(int index)
public String getErrorMessageHTML()
public boolean containsIndex(int index)
public int compareTo(Object o)
compareTo in interface Comparablepublic int getUniqueIdentifier()
public boolean canBeCollapsed()
public void foldingEntitySetExpanded(boolean expanded)
foldingEntitySetExpanded in interface ATEFoldingEntitypublic boolean foldingEntityIsExpanded()
foldingEntityIsExpanded in interface ATEFoldingEntitypublic boolean foldingEntityCanBeCollapsed()
foldingEntityCanBeCollapsed in interface ATEFoldingEntitypublic int foldingEntityGetStartParagraphIndex()
foldingEntityGetStartParagraphIndex in interface ATEFoldingEntitypublic int foldingEntityGetStartIndex()
foldingEntityGetStartIndex in interface ATEFoldingEntitypublic int foldingEntityGetEndIndex()
foldingEntityGetEndIndex in interface ATEFoldingEntitypublic int foldingEntityGetStartLine()
foldingEntityGetStartLine in interface ATEFoldingEntitypublic int foldingEntityGetEndLine()
foldingEntityGetEndLine in interface ATEFoldingEntitypublic String foldingEntityPlaceholderString()
foldingEntityPlaceholderString in interface ATEFoldingEntitypublic String foldingEntityID()
foldingEntityID in interface ATEFoldingEntitypublic int foldingEntityLevel()
foldingEntityLevel in interface ATEFoldingEntitypublic int getItemIndex()
getItemIndex in interface ATEGutterItempublic void setItemIndex(int index)
setItemIndex in interface ATEGutterItempublic List<Integer> getItemTypes()
getItemTypes in interface ATEGutterItempublic int getItemWidth()
getItemWidth in interface ATEGutterItempublic int getItemHeight()
getItemHeight in interface ATEGutterItempublic ImageIcon getItemIcon(int type)
getItemIcon in interface ATEGutterItempublic String getItemTooltip(int type)
getItemTooltip in interface ATEGutterItempublic void itemAction(int type)
itemAction in interface ATEGutterItempublic Object getPersistentID()
getPersistentID in interface EditorPersistentObjectpublic void persistentAssign(EditorPersistentObject otherObject)
persistentAssign in interface EditorPersistentObjectCopyright © 2013. All rights reserved.