Package antlr.preprocessor
Class Rule
java.lang.Object
antlr.preprocessor.Rule
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()
boolean
getBang()
getName()
boolean
narrowerVisibility
(Rule rule) If 'rule' narrows the visible of 'this', return true; For example, 'this' is public and 'rule' is private, true is returned.boolean
sameSignature
(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...void
void
setBang()
void
void
void
setOptions
(IndexedVector options) void
setReturnValue
(String ret) void
void
toString()
-
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
-