Package com.sun.jdi

Examples of com.sun.jdi.Field


    ReferenceType ref = getUnderlyingReferenceType();
    try {
      for (int i = 0; i < superClassLevel; i++) {
        ref = ((ClassType) ref).superclass();
      }
      Field field = ref.fieldByName(name);
      if (field != null) {
        return new JDIFieldVariable((JDIDebugTarget) getDebugTarget(),
            field, getUnderlyingObject(), fLogicalParent);
      }
    } catch (RuntimeException e) {
View Full Code Here


      throws DebugException {
    JDIObjectValue res = this;
    for (int i = 0; i < enclosingLevel; i++) {
      ReferenceType ref = res.getUnderlyingReferenceType();
      try {
        Field enclosingThis = null, fieldTmp = null;
        Iterator<Field> fields = ref.fields().iterator();
        while (fields.hasNext()) {
          fieldTmp = fields.next();
          if (fieldTmp.name().startsWith("this$")) { //$NON-NLS-1$
            enclosingThis = fieldTmp;
View Full Code Here

  protected boolean createRequest(JDIDebugTarget target, ReferenceType type)
      throws CoreException {
    if (shouldSkipBreakpoint()) {
      return false;
    }
    Field field = null;

    field = type.fieldByName(getFieldName());
    if (field == null) {
      // error
      return false;
View Full Code Here

   * @see JavaBreakpoint#recreateRequest(EventRequest, JDIDebugTarget)
   */
  protected EventRequest recreateRequest(EventRequest request,
      JDIDebugTarget target) throws CoreException {
    try {
      Field field = ((WatchpointRequest) request).field();
      if (request instanceof AccessWatchpointRequest) {
        request = createAccessWatchpoint(target, field);
      } else if (request instanceof ModificationWatchpointRequest) {
        request = createModificationWatchpoint(target, field);
      }
View Full Code Here

    }

    @Override
    Value get( String name )
    {
        Field field = value.referenceType().fieldByName( name );
        if ( field == null )
        {
            for ( Field candidate : value.referenceType().fields() )
            {
                if ( name.equals( candidate.name() ) )
View Full Code Here

TOP

Related Classes of com.sun.jdi.Field

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.