Interface IJavaModifiers

All Known Subinterfaces:
IJavaFieldVariable, IJavaStackFrame, IJavaVariable

public interface IJavaModifiers
Modifiers common to Java debug elements that have associated Java member declarations. For example, the method associated with a stack frame, or the field associated with a variable.
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the associated Java construct is declared as final.
    boolean
    Returns whether the associated Java construct is declared with no protection modifier (package private protection).
    boolean
    Returns whether the associated Java construct is declared as private.
    boolean
    Returns whether the associated Java construct is declared as protected.
    boolean
    Returns whether the associated Java construct is declared as public.
    boolean
    Returns whether the associated Java construct is declared as static.
    boolean
    Returns whether the associated Java construct is synthetic.
  • Method Details

    • isPublic

      boolean isPublic() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is declared as public.
      Returns:
      whether the associated Java construct is declared as public
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
    • isPrivate

      boolean isPrivate() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is declared as private.
      Returns:
      whether the associated Java construct is declared as private
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
    • isProtected

      boolean isProtected() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is declared as protected.
      Returns:
      whether the associated Java construct is declared as protected
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
    • isPackagePrivate

      boolean isPackagePrivate() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is declared with no protection modifier (package private protection).
      Returns:
      whether the associated Java construct is declared as package private
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
    • isFinal

      boolean isFinal() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is declared as final.
      Returns:
      whether the associated Java construct is declared as final
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
    • isStatic

      boolean isStatic() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is declared as static.
      Returns:
      whether the associated Java construct is declared as static
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.
    • isSynthetic

      boolean isSynthetic() throws org.eclipse.debug.core.DebugException
      Returns whether the associated Java construct is synthetic. Synthetic members are generated by the compiler and are not present in source code.
      Returns:
      whether the associated Java construct is synthetic
      Throws:
      org.eclipse.debug.core.DebugException - if this method fails. Reasons include:
      • Failure communicating with the VM. The DebugException's status code contains the underlying exception responsible for the failure.