Package sc.lang.html

Class Node

    • Field Detail

      • errorArgs

        public transient java.lang.Object[] errorArgs
    • Constructor Detail

      • Node

        public Node()
    • Method Detail

      • getProperty

        public java.lang.Object getProperty​(java.lang.String propName,
                                            boolean getField)
        Specified by:
        getProperty in interface IDynObject
      • getProperty

        public java.lang.Object getProperty​(int propIndex,
                                            boolean getField)
        Specified by:
        getProperty in interface IDynObject
      • setSemanticProperty

        public void setSemanticProperty​(java.lang.Object selector,
                                        java.lang.Object value)
      • setProperty

        public void setProperty​(java.lang.String propName,
                                java.lang.Object value,
                                boolean setField)
        Specified by:
        setProperty in interface IDynObject
      • setProperty

        public void setProperty​(int propIndex,
                                java.lang.Object value,
                                boolean setField)
        Specified by:
        setProperty in interface IDynObject
      • invoke

        public java.lang.Object invoke​(java.lang.String methodName,
                                       java.lang.String paramSig,
                                       java.lang.Object... args)
        Specified by:
        invoke in interface IDynObject
      • invoke

        public java.lang.Object invoke​(int methodIndex,
                                       java.lang.Object... args)
        Specified by:
        invoke in interface IDynObject
      • getDynType

        public java.lang.Object getDynType()
        Specified by:
        getDynType in interface IDynObject
      • setDynType

        public void setDynType​(java.lang.Object typeObj)
        Specified by:
        setDynType in interface IDynObject
      • getTypedProperty

        public <_TPROP> _TPROP getTypedProperty​(java.lang.String propName,
                                                java.lang.Class<_TPROP> propType)
        Specified by:
        getTypedProperty in interface IDynObject
      • addProperty

        public void addProperty​(java.lang.Object propType,
                                java.lang.String propName,
                                java.lang.Object initValue)
        Specified by:
        addProperty in interface IDynObject
      • getSrcStatement

        public ISrcStatement getSrcStatement​(Language lang)
        Description copied from interface: ISrcStatement
        When called on a generated node, finds the original source node for the specified language which must be one of the intermediate languages this node was generated from. Lang can be null in which case we trace generated nodes to find the original source language.
        Specified by:
        getSrcStatement in interface ISrcStatement
      • addBreakpointNodes

        public void addBreakpointNodes​(java.util.List<ISrcStatement> result,
                                       ISrcStatement st)
        Description copied from interface: ISrcStatement
        Adds all of the generated statements to the resulting list, for the case where more than one fromStatement points to the same src statement. These are used to determine which statements in the generated code should cause a 'break' when the developer sets a breakpoint on this statement.
        Specified by:
        addBreakpointNodes in interface ISrcStatement
      • getFromStatement

        public ISrcStatement getFromStatement()
        Description copied from interface: ISrcStatement
        Returns the value of the 'fromStatement' field stored on this node to represent a link from a generated node from an original source one.
        Specified by:
        getFromStatement in interface ISrcStatement
      • displayError

        public void displayError​(java.lang.String... args)
        Description copied from class: JavaSemanticNode
        Used for errors that should always be displayed
        Overrides:
        displayError in class JavaSemanticNode
      • displayTypeError

        public boolean displayTypeError​(java.lang.String... args)
        Description copied from class: JavaSemanticNode
        Used for errors involving type resolution. These errors can be disabled during certain operations like transform
        Overrides:
        displayTypeError in class JavaSemanticNode