Class NodeData

All Implemented Interfaces:
Comparable<NodeData>, Iterable<MessageContainer>

public class NodeData extends Template implements Comparable<NodeData>
  • Constructor Details

  • Method Details

    • getActivationProbability

      public double getActivationProbability()
    • setActivationProbability

      public void setActivationProbability(double activationProbability)
    • getReachableSpecializations

      public List<SpecializationData> getReachableSpecializations()
    • setReachableSpecializations

      public void setReachableSpecializations(List<SpecializationData> reachableSpecializations)
    • getParsingParent

      public NodeData 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()
    • getSharedCaches

      public Map<CacheExpression,String> getSharedCaches()
    • setSharedCaches

      public void setSharedCaches(Map<CacheExpression,String> sharedCaches)
    • 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

      public NodeExecutionData 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

      public void setFrameType(TypeMirror frameType)
    • getFrameType

      public TypeMirror getFrameType()
    • addEnclosedNode

      public void addEnclosedNode(NodeData node)
    • getChildExecutions

      public List<NodeExecutionData> getChildExecutions()
    • getExecutionCount

      public int getExecutionCount()
    • getSignatureSize

      public int getSignatureSize()
    • isFrameUsedByAnyGuard

      public boolean isFrameUsedByAnyGuard()
    • getCasts

      public List<CreateCastData> getCasts()
    • getFields

      public List<NodeFieldData> getFields()
    • findChildContainers

      protected List<MessageContainer> findChildContainers()
      Overrides:
      findChildContainers in class Template
    • getInstanceParameterSpec

      public ParameterSpec getInstanceParameterSpec()
    • setInstanceParameterSpec

      public void setInstanceParameterSpec(ParameterSpec instanceParameter)
    • getNodeId

      public String getNodeId()
    • getNodeType

      public TypeMirror getNodeType()
    • getVisibility

      public Modifier getVisibility()
    • needsFactory

      public boolean needsFactory()
    • supportsFrame

      public boolean supportsFrame()
    • getNodesWithFactories

      public List<NodeData> getNodesWithFactories()
    • getDeclaringNode

      public NodeData getDeclaringNode()
    • getEnclosingNodes

      public List<NodeData> getEnclosingNodes()
    • getAllTemplateMethods

      public List<ExecutableElement> getAllTemplateMethods()
    • findAnyGenericExecutableType

      public ExecutableTypeData findAnyGenericExecutableType(ProcessorContext context, int evaluatedCount)
    • getExecutableTypes

      public List<ExecutableTypeData> getExecutableTypes(int evaluatedCount)
    • findGenericExecutableTypes

      public List<ExecutableTypeData> findGenericExecutableTypes(int evaluatedCount)
    • findExecutableType

      public ExecutableTypeData findExecutableType(TypeMirror primitiveType, int evaluatedCount)
    • needsState

      public boolean needsState(ProcessorContext context)
    • needsRewrites

      public boolean needsRewrites(ProcessorContext context)
    • getFallbackSpecialization

      public SpecializationData getFallbackSpecialization()
    • getTypeSystem

      public TypeSystemData getTypeSystem()
    • dump

      public String dump()
      Overrides:
      dump in class Template
    • findChild

      public NodeChildData findChild(String name)
    • getChildren

      public List<NodeChildData> getChildren()
    • computeUncachedSpecializations

      public Collection<SpecializationData> computeUncachedSpecializations(List<SpecializationData> s)
    • getSpecializations

      public List<SpecializationData> getSpecializations()
    • getGenericExecutableType

      public ExecutableTypeData getGenericExecutableType(ExecutableTypeData typeHint)
    • getExecutableTypes

      public List<ExecutableTypeData> getExecutableTypes()
    • getMinimalEvaluatedParameters

      public int getMinimalEvaluatedParameters()
    • toString

      public String toString()
      Overrides:
      toString in class Template
    • findCast

      public CreateCastData findCast(String name)
    • compareTo

      public int compareTo(NodeData o)
      Specified by:
      compareTo in interface Comparable<NodeData>
    • getGenericType

      public TypeMirror getGenericType(NodeExecutionData execution)
    • getGenericTypes

      public List<TypeMirror> getGenericTypes(NodeExecutionData execution)
    • setReportPolymorphism

      public void setReportPolymorphism(boolean report)
    • isReportPolymorphism

      public boolean isReportPolymorphism()
    • setAllowedCheckedExceptions

      public void setAllowedCheckedExceptions(Set<String> checkedExceptions)
    • getAllowedCheckedExceptions

      public Set<String> getAllowedCheckedExceptions()
    • getLibraryTypes

      public Set<TypeMirror> getLibraryTypes()
    • setPolymorphicExecutable

      public void setPolymorphicExecutable(ExecutableTypeData polymorphicType)
    • getPolymorphicExecutable

      public ExecutableTypeData getPolymorphicExecutable()