Home | History | Annotate | Download | only in jdwp
      1 /*
      2  * Licensed to the Apache Software Foundation (ASF) under one or more
      3  * contributor license agreements.  See the NOTICE file distributed with
      4  * this work for additional information regarding copyright ownership.
      5  * The ASF licenses this file to You under the Apache License, Version 2.0
      6  * (the "License"); you may not use this file except in compliance with
      7  * the License.  You may obtain a copy of the License at
      8  *
      9  *     http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  *  Unless required by applicable law or agreed to in writing, software
     12  *  distributed under the License is distributed on an "AS IS" BASIS,
     13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  *
     15  *  See the License for the specific language governing permissions and
     16  *  limitations under the License.
     17  */
     18 
     19 /**
     20  * @author Aleksey V. Yantsen
     21  */
     22 
     23 /**
     24  * Created on 11.29.2004
     25  */
     26 package org.apache.harmony.jpda.tests.framework.jdwp;
     27 
     28 import org.apache.harmony.jpda.tests.framework.jdwp.Location;
     29 
     30 /**
     31  * This class provides specific event modifiers for event request.
     32  */
     33 public class EventMod {
     34 
     35     public class ModKind {
     36         public static final byte Count         = 1;
     37 
     38         public static final byte Conditional   = 2;
     39 
     40         public static final byte ThreadOnly    = 3;
     41 
     42         public static final byte ClassOnly     = 4;
     43 
     44         public static final byte ClassMatch    = 5;
     45 
     46         public static final byte ClassExclude  = 6;
     47 
     48         public static final byte LocationOnly  = 7;
     49 
     50         public static final byte ExceptionOnly = 8;
     51 
     52         public static final byte FieldOnly     = 9;
     53 
     54         public static final byte Step          = 10;
     55 
     56         public static final byte InstanceOnly  = 11;
     57 
     58         // new case for Java 6
     59         public static final byte SourceNameMatch = 12;
     60     }
     61 
     62     public final byte modKind;
     63 
     64     public int  count;
     65     public int  exprID;
     66 
     67     // threadID
     68     public long     thread;
     69 
     70     // referenceTypeID
     71     public long     clazz;
     72 
     73     public String   classPattern;
     74 
     75     public String   sourceNamePattern;
     76 
     77     public Location loc;
     78 
     79     // referenceTypeID
     80     public long     exceptionOrNull;
     81 
     82     public boolean  caught;
     83 
     84     public boolean  uncaught;
     85 
     86     // referenceTypeID
     87     public long     declaring;
     88 
     89     // fieldID
     90     public long     fieldID;
     91 
     92     public int      size;
     93 
     94     public int      depth;
     95 
     96     // objectID
     97     public long     instance;
     98 
     99     /**
    100      * Creates new instance with empty data.
    101      */
    102     EventMod(byte modKind) {
    103         this.modKind = modKind;
    104         count = -1;
    105         exprID = -1;
    106         // threadID
    107         thread = -1;
    108         // referenceTypeID
    109         clazz = -1;
    110         classPattern = new String();
    111         sourceNamePattern = new String();
    112         loc = new Location();
    113         // referenceTypeID
    114         exceptionOrNull = -1;
    115         caught = false;
    116         uncaught = false;
    117         // referenceTypeID
    118         declaring = -1;
    119         // fieldID
    120         fieldID = -1;
    121         size = -1;
    122         depth = -1;
    123         // objectID
    124         instance = -1;
    125     }
    126 }
    127