public class Field
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
long |
getAccessFlags()
(Named, non-VM fields only) Retrieves the access flags.
|
AccessFlags |
getAccessFlagsObj() |
InstanceKlass |
getFieldHolder()
(Named, non-VM fields only) Returns the InstanceKlass containing
this (static or non-static) field.
|
int |
getFieldIndex()
(Named, non-VM fields only) Returns the index in the fields
TypeArray for this field.
|
FieldType |
getFieldType()
(Named, non-VM fields only) Returns the type of this field.
|
Symbol |
getGenericSignature() |
FieldIdentifier |
getID()
Returns the identifier of the field
|
long |
getOffset()
Returns the byte offset of the field within the object or klass
|
Symbol |
getSignature()
(Named, non-VM fields only) Returns the signature of this
field.
|
int |
hashCode() |
boolean |
hasInitialValue() |
boolean |
isEnumConstant() |
boolean |
isFinal() |
boolean |
isNamedField()
Indicates whether this is a named field
|
boolean |
isPackagePrivate() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isSynthetic() |
boolean |
isTransient() |
boolean |
isVMField()
Indicates whether this is a VM field
|
boolean |
isVolatile() |
void |
printOn(java.io.PrintStream tty) |
public long getOffset()
public FieldIdentifier getID()
public boolean isVMField()
public boolean isNamedField()
public void printOn(java.io.PrintStream tty)
public InstanceKlass getFieldHolder()
public int getFieldIndex()
public long getAccessFlags()
public AccessFlags getAccessFlagsObj()
public FieldType getFieldType()
public Symbol getSignature()
public Symbol getGenericSignature()
public boolean hasInitialValue()
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPackagePrivate()
public boolean isStatic()
public boolean isFinal()
public boolean isVolatile()
public boolean isTransient()
public boolean isSynthetic()
public boolean isEnumConstant()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.