Java Code Examples for sun.jvm.hotspot.oops.Symbol#asString()

The following examples show how to use sun.jvm.hotspot.oops.Symbol#asString() . 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: ReferenceTypeImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
String baseSourceName() throws AbsentInformationException {
  if (saKlass instanceof ArrayKlass) {
        throw new AbsentInformationException();
  }
  Symbol sym = ((InstanceKlass)saKlass).getSourceFileName();
  if (sym != null) {
      return sym.asString();
  } else {
      throw new AbsentInformationException();
  }
}
 
Example 2
Source File: ReferenceTypeImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
String baseSourceName() throws AbsentInformationException {
  if (saKlass instanceof ArrayKlass) {
        throw new AbsentInformationException();
  }
  Symbol sym = ((InstanceKlass)saKlass).getSourceFileName();
  if (sym != null) {
      return sym.asString();
  } else {
      throw new AbsentInformationException();
  }
}
 
Example 3
Source File: FieldImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saField.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
}
 
Example 4
Source File: FieldImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private void getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saField.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
}
 
Example 5
Source File: MethodImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private JNITypeParser getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saMethod.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
    return signatureParser;
}
 
Example 6
Source File: FieldImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saField.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
}
 
Example 7
Source File: FieldImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saField.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
}
 
Example 8
Source File: MethodImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private JNITypeParser getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saMethod.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
    return signatureParser;
}
 
Example 9
Source File: ReferenceTypeImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public String genericSignature() {
    if (saKlass instanceof ArrayKlass) {
        return null;
    } else {
        Symbol genSig = ((InstanceKlass)saKlass).getGenericSignature();
        return (genSig != null)? genSig.asString() : null;
    }
}
 
Example 10
Source File: ReferenceTypeImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
String baseSourceName() throws AbsentInformationException {
  if (saKlass instanceof ArrayKlass) {
        throw new AbsentInformationException();
  }
  Symbol sym = ((InstanceKlass)saKlass).getSourceFileName();
  if (sym != null) {
      return sym.asString();
  } else {
      throw new AbsentInformationException();
  }
}
 
Example 11
Source File: ReferenceTypeImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public String genericSignature() {
    if (saKlass instanceof ArrayKlass) {
        return null;
    } else {
        Symbol genSig = ((InstanceKlass)saKlass).getGenericSignature();
        return (genSig != null)? genSig.asString() : null;
    }
}
 
Example 12
Source File: MethodImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private JNITypeParser getParser() {
    if (signatureParser == null) {
        Symbol sig1 = saMethod.getSignature();
        signature = sig1.asString();
        signatureParser = new JNITypeParser(signature);
    }
    return signatureParser;
}
 
Example 13
Source File: FieldImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public String genericSignature() {
    Symbol genSig = saField.getGenericSignature();
    return (genSig != null)? genSig.asString() : null;
}
 
Example 14
Source File: FieldImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public String genericSignature() {
    Symbol genSig = saField.getGenericSignature();
    return (genSig != null)? genSig.asString() : null;
}
 
Example 15
Source File: MethodImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public String name() {
    Symbol myName = saMethod.getName();
    return myName.asString();
}
 
Example 16
Source File: MethodImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public String genericSignature() {
    Symbol genSig = saMethod.getGenericSignature();
    return (genSig != null)? genSig.asString() : null;
}
 
Example 17
Source File: MethodImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public String genericSignature() {
    Symbol genSig = saMethod.getGenericSignature();
    return (genSig != null)? genSig.asString() : null;
}
 
Example 18
Source File: MethodImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public String name() {
    Symbol myName = saMethod.getName();
    return myName.asString();
}
 
Example 19
Source File: FieldImpl.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public String genericSignature() {
    Symbol genSig = saField.getGenericSignature();
    return (genSig != null)? genSig.asString() : null;
}
 
Example 20
Source File: FieldImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public String genericSignature() {
    Symbol genSig = saField.getGenericSignature();
    return (genSig != null)? genSig.asString() : null;
}