Package flash.tools.debugger

Examples of flash.tools.debugger.Value


  Value locateParentForNamed(long id, String name, boolean traverseProto) throws PlayerDebugException
  {
    StringBuilder sb = new StringBuilder();

    Variable var = null;
    Value val = null;
    try
    {
      var = memberNamed(id, name);

      // see if we need to traverse the proto chain
View Full Code Here


  // variant of locateParentForNamed, whereby we return the child variable
  Variable locateForNamed(long id, String name, boolean traverseProto) throws PlayerDebugException
  {
    Variable var = null;
    Value v = locateParentForNamed(id, name, traverseProto);
    if (v != null)
    {
      try
      {
        var = memberNamed(v.getId(), name);
      }
      catch(NoSuchVariableException nse)
      {
        v = null;
      }
View Full Code Here

    if (dottedName == null)
      return null;

    // first rip apart the dottedName
    StringTokenizer names = new StringTokenizer(dottedName, "."); //$NON-NLS-1$
    Value val = getSession().getValue(startingId);

    while(names.hasMoreTokens() && val != null)
      val = locateForNamed(val.getId(), names.nextToken(), traverseProto).getValue();

    return val;
  }
View Full Code Here

   * @param o
   *            the value to format.
   */
  public void appendVariableValue(StringBuilder sb, final Object o)
  {
    Value v;

    if (o instanceof Value) {
      v = (Value) o;
    } else {
      v = new Value() {
        public int getAttributes() {
          return 0;
        }

        public String[] getClassHierarchy(boolean allLevels) {
View Full Code Here

      // As of FP9, the player will also send the "toString()" message
      // of the exception. But for backward compatibility with older
      // players, we won't assume that that is there.
      String exceptionMessage;
      boolean willExceptionBeCaught = false;
      Value thrown = null;
      if (msg.getRemaining() > 0) {
        exceptionMessage = msg.getString();
        if (msg.getRemaining() > 0) {
          if (msg.getByte() != 0) {
            willExceptionBeCaught = (msg.getByte() != 0 ? true
View Full Code Here

   * Returns whether this is not a variable at all, but is instead a
   * representation of a "traits" object. A "traits" object is the Flash
   * player's way of describing one class.
   */
  private boolean isTraits(DVariable variable) {
    Value value = variable.getValue();
    if (value.getType() == VariableType.UNKNOWN
        && Value.TRAITS_TYPE_NAME.equals(value.getTypeName())) {
      return true;
    }
    return false;
  }
View Full Code Here

    getValueWorker(Value.THIS_ID, isolateId);
    getValueWorker(Value.ROOT_ID, isolateId);

    // request as many levels as we can get
    int i = 0;
    Value v = null;
    do
    {
      v = getValueWorker(Value.LEVEL_ID-i, isolateId);
    }
    while( i++ < 128 && v != null);

    // now that we've primed the DManager we can request the base variable whose
    // children are the variables that are available
    v = m_manager.getValue(Value.BASE_ID, isolateId);
    if (v == null)
      throw new VersionException();
    return v.getMembers(this);
  }
View Full Code Here

    return getGlobalWorker(name, Isolate.DEFAULT_ID);
  }
 
  public Value getGlobalWorker(String name, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
  {
    Value v = getValue(0, name, isolateId);

    if (v==null || v.getType() == VariableType.UNDEFINED)
      return null;
    else
      return v;
  }
View Full Code Here

   * paragraph was written for AS2; __proto__ doesn't exist
   * in AS3.  TODO: revise this paragraph]
   */
  public Value getValue(long varId, String name, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
  {
    Value v = null;
    if (isWorkerSuspended(isolateId))
    {
      int fireGetter = getPreference(SessionManager.PREF_INVOKE_GETTERS);

      // disable children attaching to parent variables and clear our
View Full Code Here

    return callFunctionWorker(thisValue, funcname, args, Isolate.DEFAULT_ID);
  }
 
  public Value callFunctionWorker(Value thisValue, String funcname, Value[] args, int isolateId) throws PlayerDebugException
  {
    Value retval = callPseudoFunction(thisValue, funcname, args, isolateId);
    if (retval != null) {
      return retval;
    }

    return callFunction(thisValue, false, funcname, args, isolateId);
View Full Code Here

TOP

Related Classes of flash.tools.debugger.Value

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.