public class BytecodeLoadConstant extends Bytecode
Modifier and Type | Method and Description |
---|---|
static BytecodeLoadConstant |
at(BytecodeStream bcs) |
static BytecodeLoadConstant |
at(Method method,
int bci) |
static BytecodeLoadConstant |
atCheck(Method method,
int bci)
Like at, but returns null if the BCI is not at ldc or ldc_w or ldc2_w
|
int |
cacheIndex() |
java.lang.String |
getConstantValue() |
java.lang.Object |
getKlass() |
boolean |
hasCacheIndex() |
boolean |
isKlassConstant() |
boolean |
isValid() |
int |
poolIndex() |
BasicType |
resultType() |
java.lang.String |
toString() |
void |
verify() |
bci, code, getBytecodeName, getIndexU1, getIndexU1Cpcache, getIndexU2, getIndexU2Cpcache, getIndexU4, getJavaBytecodeName, getJavaLength, getLength, hasIndexU4, javaCode, method
public boolean hasCacheIndex()
public int poolIndex()
public int cacheIndex()
public BasicType resultType()
public void verify()
public boolean isValid()
public boolean isKlassConstant()
public java.lang.Object getKlass()
public static BytecodeLoadConstant at(Method method, int bci)
public static BytecodeLoadConstant atCheck(Method method, int bci)
public static BytecodeLoadConstant at(BytecodeStream bcs)
public java.lang.String getConstantValue()
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.