fielddeclaration.java

来自「java1.6众多例子参考」· Java 代码 · 共 57 行

JAVA
57
字号
/* * @(#)FieldDeclaration.java	1.3 05/11/17 * * Copyright 2006 Sun Microsystems, Inc.  All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL.  Use is subject to license terms. */package com.sun.mirror.declaration;import com.sun.mirror.type.TypeMirror;/** * Represents a field of a type declaration. * * @author Joseph D. Darcy * @author Scott Seligman * @version 1.3 05/11/17 * @since 1.5 */public interface FieldDeclaration extends MemberDeclaration {    /**     * Returns the type of this field.     *     * @return the type of this field     */    TypeMirror getType();    /**     * Returns the value of this field if this field is a compile-time     * constant.  Returns <tt>null</tt> otherwise.     * The value will be of a primitive type or <tt>String</tt>.     * If the value is of a primitive type, it is wrapped in the     * appropriate wrapper class (such as {@link Integer}).     *     * @return the value of this field if this field is a compile-time     * constant, or <tt>null</tt> otherwise     */    Object getConstantValue();    /**     * Returns the text of a <i>constant expression</i> representing the     * value of this field if this field is a compile-time constant.     * Returns <tt>null</tt> otherwise.     * The value will be of a primitive type or <tt>String</tt>.     * The text returned is in a form suitable for representing the value     * in source code.     *     * @return the text of a constant expression if this field is a     *		compile-time constant, or <tt>null</tt> otherwise     */    String getConstantExpression();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?