2 * Copyright (c) 2013 Cisco Systems, Inc. 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.mdsal.binding.model.api;
10 import java.util.List;
11 import org.eclipse.jdt.annotation.Nullable;
14 * Common interface for variables and methods in class.
16 public interface TypeMember {
18 * Returns comment string associated with member.
20 * @return comment string associated with member.
22 @Nullable TypeMemberComment getComment();
25 * Returns List of annotation definitions associated with generated type.
27 * @return List of annotation definitions associated with generated type.
29 List<AnnotationType> getAnnotations();
32 * Returns the access modifier of member.
34 * @return the access modifier of member.
36 AccessModifier getAccessModifier();
39 * Returns <code>true</code> if member is declared as static.
41 * @return <code>true</code> if member is declared as static.
46 * Returns <code>true</code> if member is declared as final.
48 * @return <code>true</code> if member is declared as final.
53 * Get the returning Type of member.
55 * @return the returning Type of member.
60 * Returns the name of member.
62 * @return the name of member.