Public Member Functions | |
Rule (String n, String b, IndexedVector options, Grammar gr) | |
String | getArgs () |
boolean | getBang () |
String | getName () |
String | getReturnValue () |
String | getVisibility () |
boolean | narrowerVisibility (Rule rule) |
boolean | sameSignature (Rule rule) |
void | setArgs (String a) |
void | setBang () |
void | setEnclosingGrammar (Grammar g) |
void | setInitAction (String a) |
void | setOptions (IndexedVector options) |
void | setReturnValue (String ret) |
void | setThrowsSpec (String t) |
void | setVisibility (String v) |
String | toString () |
Protected Attributes | |
String | name |
String | block |
String | args |
String | returnValue |
String | throwsSpec |
String | initAction |
IndexedVector | options |
String | visibility |
Grammar | enclosingGrammar |
boolean | bang = false |
antlr.preprocessor.Rule.Rule | ( | String | n, | |
String | b, | |||
IndexedVector | options, | |||
Grammar | gr | |||
) |
String antlr.preprocessor.Rule.getArgs | ( | ) |
References antlr.preprocessor.Rule.args.
Referenced by antlr.preprocessor.Rule.sameSignature().
boolean antlr.preprocessor.Rule.getBang | ( | ) |
References antlr.preprocessor.Rule.bang.
Referenced by antlr.preprocessor.Rule.toString().
String antlr.preprocessor.Rule.getName | ( | ) |
References antlr.preprocessor.Rule.name.
Referenced by antlr.preprocessor.Grammar.addRule(), antlr.preprocessor.Grammar.inherit(), and antlr.preprocessor.Rule.sameSignature().
String antlr.preprocessor.Rule.getReturnValue | ( | ) |
References antlr.preprocessor.Rule.returnValue.
Referenced by antlr.preprocessor.Rule.sameSignature().
String antlr.preprocessor.Rule.getVisibility | ( | ) |
References antlr.preprocessor.Rule.visibility.
boolean antlr.preprocessor.Rule.narrowerVisibility | ( | Rule | rule | ) |
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.
References antlr.preprocessor.Rule.visibility.
boolean antlr.preprocessor.Rule.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...
References antlr.preprocessor.Rule.args, antlr.preprocessor.Rule.getArgs(), antlr.preprocessor.Rule.getName(), antlr.preprocessor.Rule.getReturnValue(), antlr.preprocessor.Rule.name, and antlr.preprocessor.Rule.returnValue.
Referenced by antlr.preprocessor.Grammar.inherit().
void antlr.preprocessor.Rule.setArgs | ( | String | a | ) |
References antlr.preprocessor.Rule.args.
Referenced by antlr.preprocessor.Preprocessor.rule().
void antlr.preprocessor.Rule.setBang | ( | ) |
References antlr.preprocessor.Rule.bang.
Referenced by antlr.preprocessor.Preprocessor.rule().
void antlr.preprocessor.Rule.setEnclosingGrammar | ( | Grammar | g | ) |
References antlr.preprocessor.Rule.enclosingGrammar.
Referenced by antlr.preprocessor.Rule.Rule().
void antlr.preprocessor.Rule.setInitAction | ( | String | a | ) |
References antlr.preprocessor.Rule.initAction.
Referenced by antlr.preprocessor.Preprocessor.rule().
void antlr.preprocessor.Rule.setOptions | ( | IndexedVector | options | ) |
void antlr.preprocessor.Rule.setReturnValue | ( | String | ret | ) |
References antlr.preprocessor.Rule.returnValue.
Referenced by antlr.preprocessor.Preprocessor.rule().
void antlr.preprocessor.Rule.setThrowsSpec | ( | String | t | ) |
References antlr.preprocessor.Rule.throwsSpec.
Referenced by antlr.preprocessor.Preprocessor.rule().
void antlr.preprocessor.Rule.setVisibility | ( | String | v | ) |
References antlr.preprocessor.Rule.visibility.
Referenced by antlr.preprocessor.Preprocessor.rule().
String antlr.preprocessor.Rule.toString | ( | ) |
References antlr.preprocessor.Rule.args, antlr.preprocessor.Rule.bang, antlr.preprocessor.Rule.block, antlr.collections.impl.IndexedVector.elements, antlr.preprocessor.Rule.getBang(), antlr.preprocessor.Rule.initAction, antlr.preprocessor.Rule.name, antlr.preprocessor.Rule.options, antlr.preprocessor.Rule.returnValue, antlr.preprocessor.Rule.throwsSpec, and antlr.preprocessor.Rule.visibility.
String antlr.preprocessor.Rule.args [protected] |
boolean antlr.preprocessor.Rule.bang = false [protected] |
String antlr.preprocessor.Rule.block [protected] |
Referenced by antlr.preprocessor.Rule.Rule(), and antlr.preprocessor.Rule.toString().
Grammar antlr.preprocessor.Rule.enclosingGrammar [protected] |
Referenced by antlr.preprocessor.Rule.setEnclosingGrammar(), and antlr.preprocessor.Grammar.toString().
String antlr.preprocessor.Rule.initAction [protected] |
Referenced by antlr.preprocessor.Rule.setInitAction(), and antlr.preprocessor.Rule.toString().
String antlr.preprocessor.Rule.name [protected] |
IndexedVector antlr.preprocessor.Rule.options [protected] |
Referenced by antlr.preprocessor.Rule.toString().
String antlr.preprocessor.Rule.returnValue [protected] |
String antlr.preprocessor.Rule.throwsSpec [protected] |
Referenced by antlr.preprocessor.Rule.setThrowsSpec(), and antlr.preprocessor.Rule.toString().
String antlr.preprocessor.Rule.visibility [protected] |