comparison graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/JavaTypeProfile.java @ 15311:820c6d353358

added ModifiersProvider as superinterface for ResolvedJava[Method|Field|Type] and implemented all checks against modifiers as default methods
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Apr 2014 12:38:05 +0200
parents 533808334e7b
children 4fd787b04c92
comparison
equal deleted inserted replaced
15310:dc2dd913c47e 15311:820c6d353358
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.api.meta; 23 package com.oracle.graal.api.meta;
24
25 import static java.lang.reflect.Modifier.*;
26 24
27 import java.util.*; 25 import java.util.*;
28 26
29 import com.oracle.graal.api.meta.JavaTypeProfile.ProfiledType; 27 import com.oracle.graal.api.meta.JavaTypeProfile.ProfiledType;
30 import com.oracle.graal.api.meta.ProfilingInfo.TriState; 28 import com.oracle.graal.api.meta.ProfilingInfo.TriState;
144 142
145 private static final long serialVersionUID = 1481773321889860837L; 143 private static final long serialVersionUID = 1481773321889860837L;
146 144
147 public ProfiledType(ResolvedJavaType type, double probability) { 145 public ProfiledType(ResolvedJavaType type, double probability) {
148 super(type, probability); 146 super(type, probability);
149 assert type.isArray() || !isAbstract(type.getModifiers()) : type; 147 assert type.isArray() || !type.isAbstract() : type;
150 } 148 }
151 149
152 /** 150 /**
153 * Returns the type for this profile entry. 151 * Returns the type for this profile entry.
154 */ 152 */