public class Symbol extends VMObject
Modifier and Type | Method and Description |
---|---|
byte[] |
asByteArray() |
java.lang.String |
asString() |
static Symbol |
create(Address addr) |
boolean |
equals(byte[] modUTF8Chars) |
int |
fastCompare(Symbol other)
Note: this comparison is used for vtable sorting only; it
doesn't matter what order it defines, as long as it is a total,
time-invariant order Since Symbol* are in C_HEAP, their
relative order in memory never changes, so use address
comparison for speed.
|
byte |
getByteAt(long index) |
long |
getLength() |
int |
identityHash() |
boolean |
isSymbol() |
void |
printValueOn(java.io.PrintStream tty) |
boolean |
startsWith(java.lang.String str) |
equals, getAddress, hashCode, toString
public boolean isSymbol()
public long getLength()
public byte getByteAt(long index)
public int identityHash()
public boolean equals(byte[] modUTF8Chars)
public byte[] asByteArray()
public java.lang.String asString()
public boolean startsWith(java.lang.String str)
public void printValueOn(java.io.PrintStream tty)
public int fastCompare(Symbol other)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.