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 byte modKind; 63 public int count; 64 public int exprID; 65 66 // threadID 67 public long thread; 68 69 // referenceTypeID 70 public long clazz; 71 72 public String classPattern; 73 74 public String sourceNamePattern; 75 76 public Location loc; 77 78 // referenceTypeID 79 public long exceptionOrNull; 80 81 public boolean caught; 82 83 public boolean uncaught; 84 85 // referenceTypeID 86 public long declaring; 87 88 // fieldID 89 public long fieldID; 90 91 public int size; 92 93 public int depth; 94 95 // objectID 96 public long instance; 97 98 /** 99 * Creates new instance with empty data. 100 */ EventMod()101 public EventMod() { 102 modKind = 0; 103 count = -1; 104 exprID = -1; 105 // threadID 106 thread = -1; 107 // referenceTypeID 108 clazz = -1; 109 classPattern = new String(); 110 sourceNamePattern = new String(); 111 loc = new Location(); 112 // referenceTypeID 113 exceptionOrNull = -1; 114 caught = false; 115 uncaught = false; 116 // referenceTypeID 117 declaring = -1; 118 // fieldID 119 fieldID = -1; 120 size = -1; 121 depth = -1; 122 // objectID 123 instance = -1; 124 } 125 } 126