ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch(role){ default: return null; case ChildRole.OPERAND: return getFirstChildNode(); case ChildRole.OPERATION_SIGN: return getLastChildNode(); } }