|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JField
Represents an exposed field on a Java class.
Method Summary | |
---|---|
abstract Object |
getConstantValue() Returns the value of a constant field. |
abstract String |
getConstantValueExpression() Returns the text of a Java language expression whose value is the value of the constant. |
abstract String |
getQualifiedName() Returns a qualied name for this method as specified by java.lang.reflect.Field.toString() : |
abstract JClass |
getType() Returns the type of this field. |
abstract boolean |
isFinal() Return true if this field is final. |
abstract boolean |
isStatic() Return true if this field is static. |
abstract boolean |
isTransient() Return true if this field is transient. |
abstract boolean |
isVolatile() Return true if this field is volatile. |
Methods inherited from interface com.bea.util.jam.JMember |
---|
getContainingClass, getModifiers, isPackagePrivate, isPrivate, isProtected, isPublic |
Methods inherited from interface com.bea.util.jam.JAnnotatedElement |
---|
getAllJavadocTags, getAnnotation, getAnnotation, getAnnotations, getAnnotationValue, getComment |
Methods inherited from interface com.bea.util.jam.JElement |
---|
accept, getArtifact, getParent, getSimpleName, getSourcePosition, isSourceAvailable, toString |
Method Detail |
---|
JClass getType()
boolean isFinal()
boolean isStatic()
boolean isVolatile()
boolean isTransient()
String getQualifiedName()
Returns a qualied name for this method as specified by java.lang.reflect.Field.toString()
:
Returns a string describing this Field. The format is the access modifiers for the field, if any, followed by the field type, followed by a space, followed by the fully-qualified name of the class declaring the field, followed by a period, followed by the name of the field. For example:
public static final int java.lang.Thread.MIN_PRIORITY
private int java.io.FileDescriptor.fd
The modifiers are placed in canonical order as specified by "The Java Language Specification". This is public, protected or private first, and then other modifiers in the following order: static, final, transient, volatile.
getQualifiedName
in interface JElement
Object getConstantValue()
Returns the value of a constant field. The value is automatically wrapped in an object if it has a primitive type. If the field is not constant, returns null.
String getConstantValueExpression()
Returns the text of a Java language expression whose value is the value of the constant. The expression uses no identifiers other than primitive literals. If the field is not constant, returns null.
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |