@Test(expected = UnsupportedOperationException.class) public void cannot_add_element() { PhpCfgEndBlock endBlock = new PhpCfgEndBlock(); Tree tree = parse("array()", PHPLexicalGrammar.ARRAY_INIALIZER); endBlock.addElement(tree); }
@Override public void addElement(Tree element) { throw new UnsupportedOperationException("Cannot add element to end block"); }
PhpCfgEndBlock extends PhpCfgBlock { @Override public void addElement(Tree element) { throw new UnsupportedOperationException("Cannot add element to end block"); } }
PhpCfgEndBlock extends PhpCfgBlock { @Override public void addElement(Tree element) { throw new UnsupportedOperationException("Cannot add element to end block"); }  }
PhpCfgEndBlock extends PhpCfgBlock { @Override public void addElement(Tree element) { throw new UnsupportedOperationException("Cannot add element to end block"); }  @Override ImmutableSet<CfgBlock> successors(); @Override void addElement(Tree element); @Override void replaceSuccessors(Map<PhpCfgBlock, PhpCfgBlock> replacements); @Override String toString(); }
PhpCfgEndBlock extends PhpCfgBlock { @Override public void addElement(Tree element) { throw new UnsupportedOperationException("Cannot add element to end block"); }  @Override ImmutableSet<CfgBlock> successors(); @Override void addElement(Tree element); @Override void replaceSuccessors(Map<PhpCfgBlock, PhpCfgBlock> replacements); @Override String toString();  }