IT. Expert System.

Java Standard Edition (SE)

Field


com.sun.jdi

Interface Field

    • Method Detail

      • typeName

        String typeName()
        Returns a text representation of the type of this field. Where the type is the type specified in the declaration of this field.

        This type name is always available even if the type has not yet been created or loaded.

        Returns:
        a String representing the type of this field.
      • type

        Type type()
           throws ClassNotLoadedException
        Returns the type of this field. Where the type is the type specified in the declaration of this field.

        For example, if a target class defines:

            short s;
            Date d;
            byte[] ba;
        And the JDI client defines these Field objects:
            Field sField = targetClass.fieldByName("s");
            Field dField = targetClass.fieldByName("d");
            Field baField = targetClass.fieldByName("ba");
        to mirror the corresponding fields, then sField.type() is a ShortType, dField.type() is the ReferenceType for java.util.Date and ((ArrayType)(baField.type())).componentType() is a ByteType.

        Note: if the type of this field is a reference type (class, interface, or array) and it has not been created or loaded by the declaring type's class loader - that is, declaringType() .classLoader(), then ClassNotLoadedException will be thrown. Also, a reference type may have been loaded but not yet prepared, in which case the type will be returned but attempts to perform some operations on the returned type (e.g. fields()) will throw a ClassNotPreparedException. Use ReferenceType.isPrepared() to determine if a reference type is prepared.

        Returns:
        the Type of this field.
        Throws:
        ClassNotLoadedException - if the type has not yet been loaded or created through the appropriate class loader.
        See Also:
        Type
      • isTransient

        boolean isTransient()
        Determine if this is a transient field.
        Returns:
        true if this field is transient; false otherwise.
      • isVolatile

        boolean isVolatile()
        Determine if this is a volatile field.
        Returns:
        true if this field is volatile; false otherwise.
      • isEnumConstant

        boolean isEnumConstant()
        Determine if this is a field that represents an enum constant.
        Returns:
        true if this field represents an enum constant; false otherwise.
      • equals

        boolean equals(Object obj)
        Compares the specified Object with this field for equality.
        Overrides:
        equals in class Object
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if the Object is a Field and if both mirror the same field (declared in the same class or interface, in the same VM).
        See Also:
        Object.hashCode(), HashMap


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 14695 / 248391918. Delta: 0.02235 с