Java Code Examples for com.sun.org.apache.bcel.internal.Constants#ITEM_NewObject

The following examples show how to use com.sun.org.apache.bcel.internal.Constants#ITEM_NewObject . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StackMapType.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private String printIndex() {
  if(type == Constants.ITEM_Object)
    return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
  else if(type == Constants.ITEM_NewObject)
    return ", offset=" + index;
  else
    return "";
}
 
Example 2
Source File: StackMapType.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
private String printIndex() {
  if(type == Constants.ITEM_Object)
    return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
  else if(type == Constants.ITEM_NewObject)
    return ", offset=" + index;
  else
    return "";
}
 
Example 3
Source File: StackMapType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private String printIndex() {
  if(type == Constants.ITEM_Object)
    return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
  else if(type == Constants.ITEM_NewObject)
    return ", offset=" + index;
  else
    return "";
}
 
Example 4
Source File: StackMapType.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private String printIndex() {
  if(type == Constants.ITEM_Object)
    return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
  else if(type == Constants.ITEM_NewObject)
    return ", offset=" + index;
  else
    return "";
}
 
Example 5
Source File: StackMapType.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private String printIndex() {
  if(type == Constants.ITEM_Object)
    return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
  else if(type == Constants.ITEM_NewObject)
    return ", offset=" + index;
  else
    return "";
}
 
Example 6
Source File: StackMapType.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
private String printIndex() {
  if(type == Constants.ITEM_Object)
    return ", class=" + constant_pool.constantToString(index, Constants.CONSTANT_Class);
  else if(type == Constants.ITEM_NewObject)
    return ", offset=" + index;
  else
    return "";
}
 
Example 7
Source File: StackMapType.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 8
Source File: StackMapType.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 9
Source File: StackMapType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/** @return true, if type is either ITEM_Object or ITEM_NewObject
 */
public final boolean hasIndex() {
  return ((type == Constants.ITEM_Object) ||
          (type == Constants.ITEM_NewObject));
}
 
Example 10
Source File: StackMapType.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 11
Source File: StackMapType.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/** @return true, if type is either ITEM_Object or ITEM_NewObject
 */
public final boolean hasIndex() {
  return ((type == Constants.ITEM_Object) ||
          (type == Constants.ITEM_NewObject));
}
 
Example 12
Source File: StackMapType.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 13
Source File: StackMapType.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 14
Source File: StackMapType.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 15
Source File: StackMapType.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/** @return true, if type is either ITEM_Object or ITEM_NewObject
 */
public final boolean hasIndex() {
  return ((type == Constants.ITEM_Object) ||
          (type == Constants.ITEM_NewObject));
}
 
Example 16
Source File: StackMapType.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/** @return true, if type is either ITEM_Object or ITEM_NewObject
 */
public final boolean hasIndex() {
  return ((type == Constants.ITEM_Object) ||
          (type == Constants.ITEM_NewObject));
}
 
Example 17
Source File: StackMapType.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 18
Source File: StackMapType.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/** @return true, if type is either ITEM_Object or ITEM_NewObject
 */
public final boolean hasIndex() {
  return ((type == Constants.ITEM_Object) ||
          (type == Constants.ITEM_NewObject));
}
 
Example 19
Source File: StackMapType.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setType(byte t) {
  if((t < Constants.ITEM_Bogus) || (t > Constants.ITEM_NewObject))
    throw new RuntimeException("Illegal type for StackMapType: " + t);
  type = t;
}
 
Example 20
Source File: StackMapType.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/** @return true, if type is either ITEM_Object or ITEM_NewObject
 */
public final boolean hasIndex() {
  return ((type == Constants.ITEM_Object) ||
          (type == Constants.ITEM_NewObject));
}