public static TupleType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> types = parser.getTypeParameters(); for (int i = 0; i < types.size(); i++) types.set(i, types.get(i).freeze()); return new TupleType(types); }
public static MapType<?, ?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 2) throw new ConfigurationException("MapType takes exactly 2 type parameters"); return getInstance(l.get(0), l.get(1), true); }
public static <T> ReversedType<T> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> types = parser.getTypeParameters(); if (types.size() != 1) throw new ConfigurationException("ReversedType takes exactly one argument, " + types.size() + " given"); return getInstance((AbstractType<T>) types.get(0)); }
public static MapType<?, ?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 2) throw new ConfigurationException("MapType takes exactly 2 type parameters"); return getInstance(l.get(0), l.get(1), true); }
public static <T> ReversedType<T> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> types = parser.getTypeParameters(); if (types.size() != 1) throw new ConfigurationException("ReversedType takes exactly one argument, " + types.size() + " given"); return getInstance((AbstractType<T>) types.get(0)); }
public static TupleType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> types = parser.getTypeParameters(); for (int i = 0; i < types.size(); i++) types.set(i, types.get(i).freeze()); return new TupleType(types); }
public static MapType<?, ?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 2) throw new ConfigurationException("MapType takes exactly 2 type parameters"); return getInstance(l.get(0), l.get(1), true); }
public static TupleType getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> types = parser.getTypeParameters(); for (int i = 0; i < types.size(); i++) types.set(i, types.get(i).freeze()); return new TupleType(types); }
public static SetType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("SetType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static ListType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("ListType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static MapType<?, ?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 2) throw new ConfigurationException("MapType takes exactly 2 type parameters"); return getInstance(l.get(0), l.get(1), true); }
public static ListType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("ListType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static SetType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("SetType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static AbstractType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> innerTypes = parser.getTypeParameters(); if (innerTypes.size() != 1) throw new SyntaxException("FrozenType() only accepts one parameter"); AbstractType<?> innerType = innerTypes.get(0); return innerType.freeze(); }
public static AbstractType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> innerTypes = parser.getTypeParameters(); if (innerTypes.size() != 1) throw new SyntaxException("FrozenType() only accepts one parameter"); AbstractType<?> innerType = innerTypes.get(0); return innerType.freeze(); }
public static SetType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("SetType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static ListType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("ListType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static SetType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> l = parser.getTypeParameters(); if (l.size() != 1) throw new ConfigurationException("SetType takes exactly 1 type parameter"); return getInstance(l.get(0), true); }
public static AbstractType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> innerTypes = parser.getTypeParameters(); if (innerTypes.size() != 1) throw new SyntaxException("FrozenType() only accepts one parameter"); AbstractType<?> innerType = innerTypes.get(0); return innerType.freeze(); }
public static AbstractType<?> getInstance(TypeParser parser) throws ConfigurationException, SyntaxException { List<AbstractType<?>> innerTypes = parser.getTypeParameters(); if (innerTypes.size() != 1) throw new SyntaxException("FrozenType() only accepts one parameter"); AbstractType<?> innerType = innerTypes.get(0); return innerType.freeze(); }