Package org.extendj.neobeaver
Class Rule
- java.lang.Object
-
- org.extendj.neobeaver.Rule
-
public class Rule extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Rule(int id, Symbol lhs, java.util.List<Symbol> rhs, java.lang.String action, java.util.List<java.lang.String> names, java.lang.String type)Rule(int id, Symbol lhs, java.util.List<Symbol> rhs, java.lang.String action, java.util.List<java.lang.String> names, java.lang.String type, java.lang.String precedence)Rule(Symbol lhs, java.util.List<Symbol> rhs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<? extends Rule>canonical()Rules for the canonical form of this rule.booleanequals(java.lang.Object obj)java.util.Collection<? extends Rule>extraRules()inthashCode()java.lang.Stringname()booleanrhsNullable(java.util.BitSet nullable)Test if the right-hand-side of this rule is nullable, according to a nullable bitset.java.lang.StringshortDesc()java.lang.StringtoString()java.lang.Stringtype()
-
-
-
Field Detail
-
id
public final int id
-
lhs
public final Symbol lhs
-
rhs
public final java.util.List<Symbol> rhs
-
action
public final java.lang.String action
-
names
public final java.util.List<java.lang.String> names
-
type
public final java.lang.String type
-
precedence
public final java.lang.String precedence
-
-
Method Detail
-
canonical
public java.util.Collection<? extends Rule> canonical()
Rules for the canonical form of this rule.
-
type
public java.lang.String type()
-
rhsNullable
public boolean rhsNullable(java.util.BitSet nullable)
Test if the right-hand-side of this rule is nullable, according to a nullable bitset.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
shortDesc
public java.lang.String shortDesc()
-
extraRules
public java.util.Collection<? extends Rule> extraRules()
-
name
public java.lang.String name()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-