/* * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.type; import org.opendaylight.yangtools.yang.model.api.TypeDefinition; import org.opendaylight.yangtools.yang.model.api.stmt.TypeEffectiveStatement; import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement; import org.opendaylight.yangtools.yang.model.util.type.BaseTypes; public final class BuiltinEffectiveStatements { private BuiltinEffectiveStatements() { throw new UnsupportedOperationException(); } public static final TypeEffectiveStatement BINARY = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.binaryType(); } }; public static final TypeEffectiveStatement BOOLEAN = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.booleanType(); } }; public static final TypeEffectiveStatement EMPTY = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.emptyType(); } }; public static final TypeEffectiveStatement INSTANCE_IDENTIFIER = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.instanceIdentifierType(); } }; public static final TypeEffectiveStatement INT8 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.int8Type(); } }; public static final TypeEffectiveStatement INT16 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.int16Type(); } }; public static final TypeEffectiveStatement INT32 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.int32Type(); } }; public static final TypeEffectiveStatement INT64 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.int64Type(); } }; public static final TypeEffectiveStatement STRING = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.stringType(); } }; public static final TypeEffectiveStatement UINT8 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.uint8Type(); } }; public static final TypeEffectiveStatement UINT16 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.uint16Type(); } }; public static final TypeEffectiveStatement UINT32 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.uint32Type(); } }; public static final TypeEffectiveStatement UINT64 = new AbstractBuiltinEffectiveStatement() { @Override public TypeDefinition getTypeDefinition() { return BaseTypes.uint64Type(); } }; }