public class RhsUtil extends Object
| Constructor and Description |
|---|
RhsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static RhsChoice |
asChoice(RhsPart... parts) |
static boolean |
containsRef(RhsPart part,
Symbol ref) |
static RhsAssignment |
getAssignment(RhsPart part) |
static AstType |
getCastType(RhsPart part) |
static Iterable<RhsPart> |
getChildren(RhsPart part) |
static Symbol |
getRepresentative(RhsPart part) |
static RhsSymbol[] |
getRhsSymbols(RhsPart p) |
static boolean |
hasMapping(RhsSequence seq) |
static boolean |
isConstant(RhsPart part) |
static boolean |
isConstant(RhsSymbol part) |
static boolean |
isEmpty(RhsPart p) |
static boolean |
isNullable(RhsPart part,
List<Nonterminal> dependencies)
Returns true, if an empty string can be derived from "part".
|
static RhsPart |
unwrap(RhsPart part) |
static RhsPart |
unwrapEx(RhsPart part,
boolean opts,
boolean casts,
boolean assignments) |
static RhsPart |
unwrapOpt(RhsPart part) |
public static RhsPart unwrapEx(RhsPart part, boolean opts, boolean casts, boolean assignments)
public static RhsAssignment getAssignment(RhsPart part)
public static boolean isConstant(RhsPart part)
public static boolean isConstant(RhsSymbol part)
public static boolean isEmpty(RhsPart p)
public static boolean hasMapping(RhsSequence seq)
public static boolean isNullable(RhsPart part, List<Nonterminal> dependencies)
Copyright © 2014. All rights reserved.