Class ConstantFieldInfo
java.lang.Object
com.oracle.truffle.compiler.ConstantFieldInfo
Value returned by
TruffleCompilerRuntime.getConstantFieldInfo(ResolvedJavaField)
describing how a field read can be constant folded based on Truffle annotations.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstantFieldInfoDenotes a field is annotated bycom.oracle.truffle.api.nodes.Node.Child.static final ConstantFieldInfoDenotes a field is annotated bycom.oracle.truffle.api.nodes.Node.Children. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ConstantFieldInfoforDimensions(int dimensions) Gets aConstantFieldInfoobject for a field.intGets the number of array dimensions to be marked as compilation final.inthashCode()booleanisChild()Determines if this object isCHILD.booleanDetermines if this object isCHILDREN.toString()
-
Field Details
-
CHILD
Denotes a field is annotated bycom.oracle.truffle.api.nodes.Node.Child. -
CHILDREN
Denotes a field is annotated bycom.oracle.truffle.api.nodes.Node.Children.
-
-
Method Details
-
isChild
public boolean isChild()Determines if this object isCHILD. -
isChildren
public boolean isChildren()Determines if this object isCHILDREN. -
getDimensions
public int getDimensions()Gets the number of array dimensions to be marked as compilation final. This value is only non-zero for array type fields.- Returns:
- a value between 0 and the number of declared array dimensions (inclusive)
-
forDimensions
Gets aConstantFieldInfoobject for a field.- Parameters:
dimensions- the number of array dimensions to be marked as compilation final
-
equals
-
hashCode
-
toString
-