MCPcopy Create free account
hub / github.com/chibash/stone / superClass

Method superClass

src/stone/ast/ClassStmnt.java:7–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5 public ClassStmnt(List<ASTree> c) { super(c); }
6 public String name() { return ((ASTLeaf)child(0)).token().getText(); }
7 public String superClass() {
8 if (numChildren() < 3)
9 return null;
10 else
11 return ((ASTLeaf)child(1)).token().getText();
12 }
13 public ClassBody body() { return (ClassBody)child(numChildren() - 1); }
14 public String toString() {
15 String parent = superClass();

Callers 1

toStringMethod · 0.95

Calls 4

numChildrenMethod · 0.45
getTextMethod · 0.45
tokenMethod · 0.45
childMethod · 0.45

Tested by

no test coverage detected