Lines Matching refs:Tree
46 abstract class Tree {
55 Tree makeOptional(boolean really) {
66 Tree makeRepeated(boolean really) {
73 static Tree makeGroup(GroupKind kind, List<Tree> children ) {
82 List<Tree> normalizedChildren = new ArrayList<Tree>(children.size());
83 for (Tree t : children) {
94 return new Group(kind,normalizedChildren.toArray(new Tree[normalizedChildren.size()]));
142 abstract static class Term extends Tree {
151 private static final class Optional extends Tree {
152 private final Tree body;
154 private Optional(Tree body) {
164 Tree makeOptional(boolean really) {
177 private static final class Repeated extends Tree {
178 private final Tree body;
180 private Repeated(Tree body) {
190 Tree makeRepeated(boolean really) {
203 private static final class Group extends Tree {
205 private final Tree[] children;
207 private Group(GroupKind kind, Tree... children) {
220 for (Tree t : children) {
226 for (Tree t : children) {
239 for (Tree child : children) {