2 * Copyright (c) 2015 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.yangtools.yang.parser.stmt.rfc6020.effective.type;
10 import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
11 import org.opendaylight.yangtools.yang.model.api.stmt.TypeEffectiveStatement;
12 import org.opendaylight.yangtools.yang.model.api.stmt.TypeStatement;
13 import org.opendaylight.yangtools.yang.model.util.type.BaseTypes;
15 public final class BuiltinEffectiveStatements {
16 private BuiltinEffectiveStatements() {
17 throw new UnsupportedOperationException();
20 public static final TypeEffectiveStatement<TypeStatement> BINARY = new AbstractBuiltinEffectiveStatement() {
22 public TypeDefinition<?> getTypeDefinition() {
23 return BaseTypes.binaryType();
26 public static final TypeEffectiveStatement<TypeStatement> BOOLEAN = new AbstractBuiltinEffectiveStatement() {
28 public TypeDefinition<?> getTypeDefinition() {
29 return BaseTypes.booleanType();
32 public static final TypeEffectiveStatement<TypeStatement> EMPTY = new AbstractBuiltinEffectiveStatement() {
34 public TypeDefinition<?> getTypeDefinition() {
35 return BaseTypes.emptyType();
38 public static final TypeEffectiveStatement<TypeStatement> INSTANCE_IDENTIFIER = new AbstractBuiltinEffectiveStatement() {
40 public TypeDefinition<?> getTypeDefinition() {
41 return BaseTypes.instanceIdentifierType();
44 public static final TypeEffectiveStatement<TypeStatement> INT8 = new AbstractBuiltinEffectiveStatement() {
46 public TypeDefinition<?> getTypeDefinition() {
47 return BaseTypes.int8Type();
50 public static final TypeEffectiveStatement<TypeStatement> INT16 = new AbstractBuiltinEffectiveStatement() {
52 public TypeDefinition<?> getTypeDefinition() {
53 return BaseTypes.int16Type();
56 public static final TypeEffectiveStatement<TypeStatement> INT32 = new AbstractBuiltinEffectiveStatement() {
58 public TypeDefinition<?> getTypeDefinition() {
59 return BaseTypes.int32Type();
62 public static final TypeEffectiveStatement<TypeStatement> INT64 = new AbstractBuiltinEffectiveStatement() {
64 public TypeDefinition<?> getTypeDefinition() {
65 return BaseTypes.int64Type();
68 public static final TypeEffectiveStatement<TypeStatement> STRING = new AbstractBuiltinEffectiveStatement() {
70 public TypeDefinition<?> getTypeDefinition() {
71 return BaseTypes.stringType();
74 public static final TypeEffectiveStatement<TypeStatement> UINT8 = new AbstractBuiltinEffectiveStatement() {
76 public TypeDefinition<?> getTypeDefinition() {
77 return BaseTypes.uint8Type();
80 public static final TypeEffectiveStatement<TypeStatement> UINT16 = new AbstractBuiltinEffectiveStatement() {
82 public TypeDefinition<?> getTypeDefinition() {
83 return BaseTypes.uint16Type();
86 public static final TypeEffectiveStatement<TypeStatement> UINT32 = new AbstractBuiltinEffectiveStatement() {
88 public TypeDefinition<?> getTypeDefinition() {
89 return BaseTypes.uint32Type();
92 public static final TypeEffectiveStatement<TypeStatement> UINT64 = new AbstractBuiltinEffectiveStatement() {
94 public TypeDefinition<?> getTypeDefinition() {
95 return BaseTypes.uint64Type();