Class IRMethod.SourceLocal

  • Enclosing class:
    IRMethod

    public static final class IRMethod.SourceLocal
    extends Object
    A source-declared variable (the receiver, a parameter, or a body local) and the SSA value(s) it lowered to.
    • Constructor Detail

      • SourceLocal

        public SourceLocal​(String name,
                           IRType type,
                           boolean parameter)
    • Method Detail

      • getName

        public String getName()
        Returns:
        the name
      • getSignature

        public String getSignature()
        Returns:
        the generic signature of the declared type, or null when the declaration is not generic
      • setSignature

        public void setSignature​(String signature)
        Parameters:
        signature - the generic signature of the declared type, or null when not generic
      • getType

        public IRType getType()
        Returns:
        the type
      • getValues

        public List<SSAValue> getValues()
        Returns:
        the values
      • isParameter

        public boolean isParameter()
        Returns:
        whether parameter
      • addValue

        public void addValue​(SSAValue value)
        Adds another SSA value bound to this source variable (SSA splits one source var across defs).
        Parameters:
        value - the SSA value to bind