Class ASTReference

    • Field Detail

      • strictRef

        @Deprecated
        public boolean strictRef
        Deprecated.
        for removal with PMD 7.0.0
        Indicates if we are running in strict reference mode.
      • toStringNullCheck

        @Deprecated
        public boolean toStringNullCheck
        Deprecated.
        for removal with PMD 7.0.0
        Indicates if toString() should be called during condition evaluation just to ensure it does not return null. Check is unnecessary if all toString() implementations are known to have non-null return values. Disabling the check will give a performance improvement since toString() may be a complex operation on large objects.
    • Method Detail

      • getRootString

        public String getRootString()
        Returns the 'root string', the reference key
        Returns:
        the root string.
      • setLiteral

        @InternalApi
        @Deprecated
        public void setLiteral​(String literal)
        Deprecated.
        Routine to allow the literal representation to be externally overridden. Used now in the VM system to override a reference in a VM tree with the literal of the calling arg to make it work nicely when calling arg is null. It seems a bit much, but does keep things consistent. Note, you can only set the literal once...
        Parameters:
        literal - String to render to when null
      • literal

        public String literal()
        Override of the SimpleNode method literal() Returns the literal representation of the node. Should be something like $<token>.
        Overrides:
        literal in class AbstractVmNode
        Returns:
        A literal string.