Package antlr.preprocessor
Class Rule
java.lang.Object
antlr.preprocessor.Rule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()booleangetBang()getName()booleannarrowerVisibility(Rule rule) If 'rule' narrows the visible of 'this', return true; For example, 'this' is public and 'rule' is private, true is returned.booleansameSignature(Rule rule) Two rules have the same signature if they have: same name same return value same args I do a simple string compare now, but later the type could be pulled out so it is insensitive to names of args etc...voidvoidsetBang()voidvoidvoidsetOptions(IndexedVector options) voidsetReturnValue(String ret) voidvoidtoString()
-
Field Details
-
name
-
block
-
args
-
returnValue
-
throwsSpec
-
initAction
-
options
-
visibility
-
enclosingGrammar
-
bang
protected boolean bang
-
-
Constructor Details
-
Rule
-
-
Method Details
-
getArgs
-
getBang
public boolean getBang() -
getName
-
getReturnValue
-
getVisibility
-
narrowerVisibility
If 'rule' narrows the visible of 'this', return true; For example, 'this' is public and 'rule' is private, true is returned. You cannot narrow the vis. of a rule. -
sameSignature
Two rules have the same signature if they have: same name same return value same args I do a simple string compare now, but later the type could be pulled out so it is insensitive to names of args etc... -
setArgs
-
setBang
public void setBang() -
setEnclosingGrammar
-
setInitAction
-
setOptions
-
setReturnValue
-
setThrowsSpec
-
setVisibility
-
toString
-