Package sc.lang.java

Class ExpressionStatement

    • Field Detail

      • operator

        public java.lang.String operator
    • Constructor Detail

      • ExpressionStatement

        public ExpressionStatement()
    • Method Detail

      • callsSuper

        public boolean callsSuper​(boolean checkModSuper)
        Description copied from class: Statement
        Does this method call "super(xxx)" for a constructor definition
        Overrides:
        callsSuper in class Statement
      • callsSuperMethod

        public boolean callsSuperMethod​(java.lang.String methName)
        Description copied from class: Statement
        Does this method call super.methName()
        Overrides:
        callsSuperMethod in class Statement
      • suggestCompletions

        public int suggestCompletions​(java.lang.String prefix,
                                      java.lang.Object currentType,
                                      ExecutionContext ctx,
                                      java.lang.String command,
                                      int cursor,
                                      java.util.Set<java.lang.String> candidates,
                                      java.lang.Object continuation,
                                      int max)
        Description copied from class: JavaSemanticNode
        Used to create a list of suggestions to complete this node. Returns the character offset into the parse-tree (or command string if there's no parse tree) where the completion should start. Parameters: prefix is the starting sequence of chars in the identifier to complete. All candidates returned will start with the prefix if it's provided. currentType provides a context for the current type if the node is not embedded in a model - i.e. an identifier expression on its own but known to live in a specific type If ctx is not null, it's an execution context we can use to evaluate the "root value" - i.e. in a.b the value of the variable 'a' is evaluated and the returned instance can be used to suggest candidates. This is useful in live-programming situations. The command String parameter is used to determine the offset returned for where the completion starts for the case where the parseNode tree is not available.
        Overrides:
        suggestCompletions in class JavaSemanticNode