2 * Copyright (c) 2016 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
9 package org.opendaylight.mdsal.binding2.model.api;
11 import com.google.common.annotations.Beta;
12 import java.util.List;
16 * Common interface for variables and methods in class.
20 public interface TypeMember {
23 * Returns comment string associated with member.
25 * @return comment string associated with member.
30 * Returns List of annotation definitions associated with generated type.
32 * @return List of annotation definitions associated with generated type.
34 List<AnnotationType> getAnnotations();
37 * Returns the access modifier of member.
39 * @return the access modifier of member.
41 AccessModifier getAccessModifier();
44 * Returns <code>true</code> if member is declared as static.
46 * @return <code>true</code> if member is declared as static.
51 * Returns <code>true</code> if member is declared as final.
53 * @return <code>true</code> if member is declared as final.
58 * Get the returning Type of member.
60 * @return the returning Type of member.
65 * Returns the name of member.
67 * @return the name of member.
72 * Returns the Type that declares member.
74 * @return the Type that declares member.
76 Type getDefiningType();