sleep.parser
Class CommentRule
java.lang.Object
sleep.parser.Rule
sleep.parser.CommentRule
- public class CommentRule
- extends Rule
CommentRule
public CommentRule()
getType
public int getType()
- Overrides:
getType
in class Rule
toString
public String toString()
- Overrides:
toString
in class Rule
wrap
public String wrap(String value)
- Overrides:
wrap
in class Rule
isLeft
public boolean isLeft(char n)
- Overrides:
isLeft
in class Rule
isRight
public boolean isRight(char n)
- Overrides:
isRight
in class Rule
isMatch
public boolean isMatch(char n)
- Overrides:
isMatch
in class Rule
isBalanced
public boolean isBalanced()
- Overrides:
isBalanced
in class Rule
copyRule
public Rule copyRule()
- Overrides:
copyRule
in class Rule
witnessOpen
public void witnessOpen(Token token)
- Used to keep track of opening braces to check balance later on
- Overrides:
witnessOpen
in class Rule
witnessClose
public void witnessClose(Token token)
- Used to keep track of closing braces to check balance later on
- Overrides:
witnessClose
in class Rule