diff --git a/src/main/java/org/sablecc/sablecc/BooleanCast.java b/src/main/java/org/sablecc/sablecc/BooleanCast.java deleted file mode 100644 index b14570e4b5d673649f3ca00a42ebeb12a312da4b..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/BooleanCast.java +++ /dev/null @@ -1,23 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -import java.util.*; - -public class BooleanCast implements Cast -{ - public final static BooleanCast instance = new BooleanCast(); - - private BooleanCast() - {} - - public Object cast(Object o) - { - return (Boolean) o; - } -} diff --git a/src/main/java/org/sablecc/sablecc/Cast.java b/src/main/java/org/sablecc/sablecc/Cast.java deleted file mode 100644 index 3c17b138a5f3cac9ecf5829d6f83785f6697fce3..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/Cast.java +++ /dev/null @@ -1,13 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -public interface Cast -{ - Object cast(Object o); -} diff --git a/src/main/java/org/sablecc/sablecc/CharSet.java b/src/main/java/org/sablecc/sablecc/CharSet.java index 9984b7d75d6e020dc742b989123d1113f40c909e..ec5f8114b97dc26947cc85440c9cee5b5793c175 100644 --- a/src/main/java/org/sablecc/sablecc/CharSet.java +++ b/src/main/java/org/sablecc/sablecc/CharSet.java @@ -210,17 +210,4 @@ public class CharSet implements Cloneable public char start; public char end; } - - public static class IntervalCast implements Cast - { - public final static IntervalCast instance = new IntervalCast(); - - private IntervalCast() - {} - - public Object cast(Object o) - { - return (Interval) o; - } - } } diff --git a/src/main/java/org/sablecc/sablecc/IntegerCast.java b/src/main/java/org/sablecc/sablecc/IntegerCast.java deleted file mode 100644 index a05df2df304317934103b8e5e9e2546f834274e3..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/IntegerCast.java +++ /dev/null @@ -1,23 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -import java.util.*; - -public class IntegerCast implements Cast -{ - public final static IntegerCast instance = new IntegerCast(); - - private IntegerCast() - {} - - public Object cast(Object o) - { - return (Integer) o; - } -} diff --git a/src/main/java/org/sablecc/sablecc/ListCast.java b/src/main/java/org/sablecc/sablecc/ListCast.java deleted file mode 100644 index f66bd6d866e7d74f9daa9e1f054459d039feae77..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/ListCast.java +++ /dev/null @@ -1,23 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -import java.util.*; - -public class ListCast implements Cast -{ - public final static ListCast instance = new ListCast(); - - private ListCast() - {} - - public Object cast(Object o) - { - return (List) o; - } -} diff --git a/src/main/java/org/sablecc/sablecc/NoCast.java b/src/main/java/org/sablecc/sablecc/NoCast.java deleted file mode 100644 index 01981302501a7c12daff076d4b845284ee654083..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/NoCast.java +++ /dev/null @@ -1,21 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -public class NoCast implements Cast -{ - public final static NoCast instance = new NoCast(); - - private NoCast() - {} - - public Object cast(Object o) - { - return o; - } -} diff --git a/src/main/java/org/sablecc/sablecc/NodeCast.java b/src/main/java/org/sablecc/sablecc/NodeCast.java deleted file mode 100644 index 202c84b031e4165c3709c4b826189394cfacf5d6..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/NodeCast.java +++ /dev/null @@ -1,24 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -import java.util.*; -import org.sablecc.sablecc.node.*; - -public class NodeCast implements Cast -{ - public final static NodeCast instance = new NodeCast(); - - private NodeCast() - {} - - public Object cast(Object o) - { - return (Node) o; - } -} diff --git a/src/main/java/org/sablecc/sablecc/StringCast.java b/src/main/java/org/sablecc/sablecc/StringCast.java deleted file mode 100644 index 63c9a86ec13f05214a2c2881f66550361eca268f..0000000000000000000000000000000000000000 --- a/src/main/java/org/sablecc/sablecc/StringCast.java +++ /dev/null @@ -1,23 +0,0 @@ -/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * This file is part of SableCC. * - * See the file "LICENSE" for copyright information and the * - * terms and conditions for copying, distribution and * - * modification of SableCC. * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ - -package org.sablecc.sablecc; - -import java.util.*; - -public class StringCast implements Cast -{ - public final static StringCast instance = new StringCast(); - - private StringCast() - {} - - public Object cast(Object o) - { - return (String) o; - } -}