@Test public void testGetLastChild() { assertEquals( NodeKind.RETURN, function.getLastChild().getId() ); assertNull( function.getChild( Integer.MAX_VALUE ) ); }
public IParserNode getLastChild() { final IParserNode lastChild = getChild( numChildren() - 1 ); return lastChild != null && lastChild.numChildren() > 0 ? lastChild.getLastChild() : lastChild; }
NestedNode { public IParserNode getLastChild() { final IParserNode lastChild = getChild( numChildren() - 1 ); return lastChild != null && lastChild.numChildren() > 0 ? lastChild.getLastChild() : lastChild; } }
NestedNode { public IParserNode getLastChild() { final IParserNode lastChild = getChild( numChildren() - 1 ); return lastChild != null && lastChild.numChildren() > 0 ? lastChild.getLastChild() : lastChild; } protected  NestedNode( final NodeKind idToBeSet ); protected  NestedNode( final NodeKind idToBeSet,
                         final IParserNode childToBeSet ); }
NestedNode { public IParserNode getLastChild() { final IParserNode lastChild = getChild( numChildren() - 1 ); return lastChild != null && lastChild.numChildren() > 0 ? lastChild.getLastChild() : lastChild; } protected  NestedNode( final NodeKind idToBeSet ); protected  NestedNode( final NodeKind idToBeSet,
                         final IParserNode childToBeSet ); final int computeCyclomaticComplexity(); final int countNodeFromType( final NodeKind type ); final IParserNode getChild( final int index ); List< IParserNode > getChildren(); NodeKind getId(); IParserNode getLastChild(); final boolean is( final NodeKind expectedType ); final int numChildren(); }
NestedNode { public IParserNode getLastChild() { final IParserNode lastChild = getChild( numChildren() - 1 ); return lastChild != null && lastChild.numChildren() > 0 ? lastChild.getLastChild() : lastChild; } protected  NestedNode( final NodeKind idToBeSet ); protected  NestedNode( final NodeKind idToBeSet,
                         final IParserNode childToBeSet ); final int computeCyclomaticComplexity(); final int countNodeFromType( final NodeKind type ); final IParserNode getChild( final int index ); List< IParserNode > getChildren(); NodeKind getId(); IParserNode getLastChild(); final boolean is( final NodeKind expectedType ); final int numChildren();  }