Public Member Functions | Protected Attributes

antlr.preprocessor.Rule Class Reference

List of all members.

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

Constructor & Destructor Documentation

antlr.preprocessor.Rule.Rule ( String  n,
String  b,
IndexedVector  options,
Grammar  gr 
)

Member Function Documentation

String antlr.preprocessor.Rule.getArgs (  ) 
boolean antlr.preprocessor.Rule.getBang (  ) 
String antlr.preprocessor.Rule.getName (  ) 
String antlr.preprocessor.Rule.getReturnValue (  ) 
String antlr.preprocessor.Rule.getVisibility (  ) 
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  ) 
void antlr.preprocessor.Rule.setBang (  ) 
void antlr.preprocessor.Rule.setEnclosingGrammar ( Grammar  g  ) 
void antlr.preprocessor.Rule.setInitAction ( String  a  ) 
void antlr.preprocessor.Rule.setOptions ( IndexedVector  options  ) 
void antlr.preprocessor.Rule.setReturnValue ( String  ret  ) 
void antlr.preprocessor.Rule.setThrowsSpec ( String  t  ) 
void antlr.preprocessor.Rule.setVisibility ( String  v  ) 
String antlr.preprocessor.Rule.toString (  ) 

Member Data Documentation

String antlr.preprocessor.Rule.args [protected]
boolean antlr.preprocessor.Rule.bang = false [protected]
String antlr.preprocessor.Rule.block [protected]
String antlr.preprocessor.Rule.name [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties