Class NodeData
java.lang.Object
com.oracle.truffle.dsl.processor.model.MessageContainer
com.oracle.truffle.dsl.processor.model.Template
com.oracle.truffle.dsl.processor.model.NodeData
- All Implemented Interfaces:
Comparable<NodeData>,Iterable<MessageContainer>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.dsl.processor.model.MessageContainer
MessageContainer.Message -
Field Summary
Fields inherited from class com.oracle.truffle.dsl.processor.model.MessageContainer
types -
Constructor Summary
ConstructorsConstructorDescriptionNodeData(ProcessorContext context, NodeData inliningParent, TypeElement type) NodeData(ProcessorContext context, NodeData inliningParent, TypeElement type, TypeSystemData typeSystem, boolean generateFactory, boolean generateUncached, boolean generatePackagePrivate) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnclosedNode(NodeData node) intdump()findAnyGenericExecutableType(ProcessorContext context, int evaluatedCount) protected List<MessageContainer> findExecutableType(TypeMirror primitiveType, int evaluatedCount) findGenericExecutableTypes(int evaluatedCount) doublegetCasts()getExecutableTypes(int evaluatedCount) intgetGenericExecutableType(ExecutableTypeData typeHint) getGenericType(NodeExecutionData execution) getGenericTypes(NodeExecutionData execution) intintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanReturns true if the generated code should be package-private.booleanbooleanbooleanbooleanbooleanReturns true if the generation of an uncached version was requested.booleanReturns true if the node instance is bound by any DSL element.booleanbooleanReturns true if the node is uncachable.booleanbooleanneedsRewrites(ProcessorContext context) booleanneedsState(ProcessorContext context) voidsetActivationProbability(double activationProbability) voidsetAllowedCheckedExceptions(Set<String> checkedExceptions) voidsetDefaultInlineCached(boolean defaultInlineCached) voidsetFrameType(TypeMirror frameType) voidsetGenerateAOT(boolean generateAOT) voidsetGenerateCached(boolean generateCached) voidsetGenerateExecuteTracing(boolean generateTraceOnEnter, boolean generateTraceOnReturn, boolean generateTraceOnException) voidsetGenerateInline(boolean generateInline) voidsetGenerateIntrospection(boolean reflectable) voidsetGeneratePackagePrivate(boolean generatePackagePrivate) voidsetGenerateStatistics(boolean generateStatistics) voidsetGenerateUncached(boolean generateUncached) voidsetInstanceParameterSpec(ParameterSpec instanceParameter) voidsetNodeBound(boolean isNodeBound) voidsetPolymorphicExecutable(ExecutableTypeData polymorphicType) voidsetReachableSpecializations(List<SpecializationData> reachableSpecializations) voidsetReportPolymorphism(boolean report) voidsetSharedCaches(Map<CacheExpression, String> sharedCaches) voidsetUncachable(boolean uncached) booleanbooleantoString()Methods inherited from class com.oracle.truffle.dsl.processor.model.Template
getContext, getMessageElement, getTemplateType, getTemplateTypeAnnotationMethods inherited from class com.oracle.truffle.dsl.processor.model.MessageContainer
addError, addError, addError, addError, addSuppressableWarning, addSuppressableWarning, addWarning, addWarning, collectMessages, emitMessages, getMessageAnnotation, getMessageAnnotationValue, getMessages, getMessagesForModification, hasErrors, hasErrorsOrWarnings, iterator, redirectMessages, redirectMessagesOnGeneratedElementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NodeData
public NodeData(ProcessorContext context, NodeData inliningParent, TypeElement type, TypeSystemData typeSystem, boolean generateFactory, boolean generateUncached, boolean generatePackagePrivate) -
NodeData
-
-
Method Details
-
getActivationProbability
public double getActivationProbability() -
setActivationProbability
public void setActivationProbability(double activationProbability) -
getReachableSpecializations
-
setReachableSpecializations
-
getParsingParent
-
shouldInlineByDefault
public boolean shouldInlineByDefault() -
isDefaultInlineCached
public boolean isDefaultInlineCached() -
setDefaultInlineCached
public void setDefaultInlineCached(boolean defaultInlineCached) -
setGenerateCached
public void setGenerateCached(boolean generateCached) -
isGenerateCached
public boolean isGenerateCached() -
setGenerateStatistics
public void setGenerateStatistics(boolean generateStatistics) -
isGenerateStatistics
public boolean isGenerateStatistics() -
setNodeBound
public void setNodeBound(boolean isNodeBound) -
isNodeBound
public boolean isNodeBound()Returns true if the node instance is bound by any DSL element. -
setUncachable
public void setUncachable(boolean uncached) -
setGenerateUncached
public void setGenerateUncached(boolean generateUncached) -
isGenerateUncached
public boolean isGenerateUncached()Returns true if the generation of an uncached version was requested. -
setGeneratePackagePrivate
public void setGeneratePackagePrivate(boolean generatePackagePrivate) -
isGeneratePackagePrivate
public boolean isGeneratePackagePrivate()Returns true if the generated code should be package-private. -
isUncachable
public boolean isUncachable()Returns true if the node is uncachable. It is uncachable if it does not require any state to be implemented. For example inline caches are uncachable. -
isGenerateFactory
public boolean isGenerateFactory() -
getThisExecution
-
isGenerateIntrospection
public boolean isGenerateIntrospection() -
setGenerateIntrospection
public void setGenerateIntrospection(boolean reflectable) -
isGenerateAOT
public boolean isGenerateAOT() -
setGenerateAOT
public void setGenerateAOT(boolean generateAOT) -
isGenerateTraceOnEnter
public boolean isGenerateTraceOnEnter() -
isGenerateTraceOnReturn
public boolean isGenerateTraceOnReturn() -
isGenerateTraceOnException
public boolean isGenerateTraceOnException() -
setGenerateExecuteTracing
public void setGenerateExecuteTracing(boolean generateTraceOnEnter, boolean generateTraceOnReturn, boolean generateTraceOnException) -
isGenerateInline
public boolean isGenerateInline() -
setGenerateInline
public void setGenerateInline(boolean generateInline) -
isFallbackReachable
public boolean isFallbackReachable() -
setFrameType
-
getFrameType
-
addEnclosedNode
-
getChildExecutions
-
getExecutionCount
public int getExecutionCount() -
getSignatureSize
public int getSignatureSize() -
isFrameUsedByAnyGuard
public boolean isFrameUsedByAnyGuard() -
getCasts
-
getFields
-
findChildContainers
- Overrides:
findChildContainersin classTemplate
-
getInstanceParameterSpec
-
setInstanceParameterSpec
-
getNodeId
-
getNodeType
-
getVisibility
-
needsFactory
public boolean needsFactory() -
supportsFrame
public boolean supportsFrame() -
getNodesWithFactories
-
getDeclaringNode
-
getEnclosingNodes
-
getAllTemplateMethods
-
findAnyGenericExecutableType
public ExecutableTypeData findAnyGenericExecutableType(ProcessorContext context, int evaluatedCount) -
getExecutableTypes
-
findGenericExecutableTypes
-
findExecutableType
-
needsState
-
needsRewrites
-
getFallbackSpecialization
-
getTypeSystem
-
dump
-
findChild
-
getChildren
-
computeUncachedSpecializations
-
getSpecializations
-
getGenericExecutableType
-
getExecutableTypes
-
getMinimalEvaluatedParameters
public int getMinimalEvaluatedParameters() -
toString
-
findCast
-
compareTo
- Specified by:
compareToin interfaceComparable<NodeData>
-
getGenericType
-
getGenericTypes
-
setReportPolymorphism
public void setReportPolymorphism(boolean report) -
isReportPolymorphism
public boolean isReportPolymorphism() -
setAllowedCheckedExceptions
-
getAllowedCheckedExceptions
-
getLibraryTypes
-
setPolymorphicExecutable
-
getPolymorphicExecutable
-